Hi,
Is there any possibility of Binding a collection of objects to XamDataChart series (LineSeries in general and ScatterSeries to be specific), which draws all series on chart and we don't have to define individual series separately? I actually can have undefined number of series and I don't want to generate series from Code side.
What are different possibilities in this scenario? Any help?
Hello Asim,
Thank you for your post. I have been looking into it and I can suggest you see this link from stackoverflow:
http://stackoverflow.com/questions/18857830/xamdatachart-with-unknown-number-of-series
where there is a sample showing how to bind the XamDataChart’s Series Property. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
This DataBinder solution was in my list but I thought there might be some other solution as well... So, tried posting it here, but it seems that we cannot do it without Dependency properties/code side.
Thanks for your support!
we are using DataBinder approach of ScatterSeries, and we have following issues, how can we fix that issues? Please modify the Databinder solution that you referred in your reply.
Hello,
Thank you for your post. I have been looking into it and I can say that if you remove "Clear" the series and them one by one via the "Add" button you will see that every series has different color. Also I can say that this sample is just a basic guideline to help you design your application. If you want any custom implementation you can contact our consulting team here:
http://d3.infragistics.com/services/
and they will be glad to assist you further.
Currently we are using XamDataChart with StackedColumnSeries we defined all required StackedFragmentSeries in xaml (almost 10 series) with Tooltip of every series, we want to avoid hard coded StackedFragmentSeries and make them dynamically like DataBinder approach.
Any update ?
If you don't want to deifne StackedFragments you can use the GroupBy Class to group your data. Here you can find more information about this:
http://www.infragistics.com/community/forums/t/85128.aspx
Hi Stefan,
I was look into it and its look good but i was faced following issues, can you fix these ?
I have been looking into the sample and I modified it, so now the labels of the Series are displayed as you want. basically I changed the values in the DataSource. As for the legend series titles, I handled the StackedColumnSeries' SeriesCreated event and in the handler I set the Title. For the Tooltip you can see this forum thread:
http://www.infragistics.com/community/forums/t/73905.aspx
where it is explained how to create a custom tooltip when using GroupBy. Also I can suggest you ask Graham what is the purpose of the the Assignation Property, but i believe it is added so the DataSource could be used with other type of Series, too.
Hope this help you.