Hi Infragistics,I am having issues in getting the StackColumnSeries working through Binding. A very similar issue has already been raised at https://es.infragistics.com/community/forums/f/retired-products-and-controls/64311/is-any-way-of-creating-dynamically-stackedfragmentseries-of-a-stackedcolumnseries/352486#352486
I have followed the same set of steps but did not get it working. It works only if the Group is sourced from the static resource not through the Binding. Please find the sample project that I would like to please review and suggest the way out.Many ThanksAmir Bakhsh
Hi,Could anyone please help me with the above issues. It is holding me back.Much appreciated.
Amir
Hello Amir,
Thank you for your post. I have been looking into it and the sample you have provided and I modified it, so now it works as you want. Basically I set the StackedColumnSeries’ AutoGenerateSeries Property to True and changed the structure of the DataSource you use. I also put comments in the XAML for your reference. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello,
I have modified the sample I sent you before, so now the GroupBy is created in code behind instead of in XAML.
Hope this helps you.
Hi Stefan
what does the value { } { Key } mean in
<CategoryXAxis name=xmaxis Label="{ } {Key}" />
i have never seen this expression .Other than it setting the x-axis in a CategoryXAxis element
can you explain ?
The Label Property of the CategoryXAxis is for formatting the Axis' Labels, like the Format Property of an Editor for example. The "{}" are for escaping, when you set this Property in XAML. If you want to set it in code behind you should set it to "{Key}" only. Also if there is a Property from the underlying object that is set as ItemsSource, its will be mapped to it (like Binding) and the corsonding Values will be showed.
Thanks Stefan that is great i understand!
But i have a situation where i want to use a DataTemplate for this Label as well as set the Value how will i do both ?
please see my post on this here:
https://es.infragistics.com/community/forums/f/retired-products-and-controls/70221/setting-the-value-and-datatemplate-label-attribute-of-the-categoryxaxis-element
I will answer to your other post as soon as possible