Hi Infragistics,I am having issues in getting the StackColumnSeries working through Binding. A very similar issue has already been raised at https://ko.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.
Hi Stefan,Many thanks for your reply.Now I can see the series being generated. Could you please help me know why the data has been declared as StaticResource. As we are strictly following the MVVM model, I would like to be guided how can I bind the "Group By" with a property in my ViewModel. Without this being possible I may not be able to use it as it stands.Again many thanks for your help.Best RegardsAmir
I modified the sample further, so now it works as you want. The GroupBy’s ItemsSource is bound to a Property of the ViewModel class.
Hope this helps you.
Hi I am having the same issue,
I have just set the autogenerateseries to true, but i dont get a stacked column series at all, all i get is a regular column chart, why is it not stacking ? cam you please send a very simple sample wehere the columns are stacked correctly? i looked at the silverlight infragistics Samples and project but the project bundles all 52 projects of every type of controls under one solution and is some what convoluted, as each samplke is added from a massive list!
Hello,
I will answer to your other post as soon as possible
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://ko.infragistics.com/community/forums/f/retired-products-and-controls/70221/setting-the-value-and-datatemplate-label-attribute-of-the-categoryxaxis-element
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.
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 ?
I have modified the sample I sent you before, so now the GroupBy is created in code behind instead of in XAML.