What is the best way to produce a chart like this with XamChart (i.e. a horizontal bar chart where bars have different thickness and overlay each other)?
Thanks!
Hello,
I just wanted to know if you was able to achieve what you requested using Graham’s and Peter’s suggestions or you still need help? Just let me know. Thank you.
Sincerely,DimiDeveloper Support Engineer,MCPD
Hi Eugene,
What you can do is use the CylinderBar chart type for the third data values and you can retemplate it the same way as the Columns. In order reduce the space between the DataPoints I used this:
<igCA:Series ChartType="StackedBar" Fill="Coral" >
<igCA:Series.ChartParameters>
<igCA:ChartParameter Type="PointWidth" Value="1.25" />
</igCA:Series.ChartParameters>…
The bars width by default is 80% of the available space, so if you multiply the width with 1.25 this will be the whole space.
Here is a screenshot of the result I get:
Please let me know if you require any further assistance on the matter.
Regards Petar.
Thanks Petar! This is very close to what I'm trying to achieve. Two subtle details:
1) Is it possible to extend your technique to plot 3 data points this way (actual, projected, goal)?2) Is it possible to style the graph to remove all the spacing/axis/legend, etc. to make it REALLY compact?
Hello Eugene,
I have been following through this thread and think I have a possible solution for you. When using two different chart types they are not stacked next to each other but rather one behind the other. You can use this by using one Bar and one StackedBar series and use the DataTemplates in order to make the front one thinner like described in our online documentation: http://help.infragistics.com/NetAdvantage/WPF/2010.1/CLR3.5/?page=xamChart_Using_a_DataTemplate_to_Style_DataPoints.html
Of course you’ll have to maintain your data flow to ensure the DataPoints in the different Series match in values.
I have made simple project for you (Chart_combined.zip) that uses static data to illustrate what I mean.
Hope this suits your scenario.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Yes, I'm building a WPF application using .Net 3.5. Is there a way to render bar chart similiar to bullet chart?