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://ko.infragistics.com/community/forums/t/85128.aspx
Thanks Stefan its solved my problem.
You can set the StackedColumnSeries' UseDefaultToolTip Property to true, but it won't look exactly like you want. This is why I suggested you follow the approach from this forum thread:
http://ko.infragistics.com/community/forums/t/73905.aspx
where it is explained how to create a custom tooltip.
Hello Stefan,
Thanks for support, I know very well how to handle events in MVVM, I was solved the legend title issue through LegendItemTemplate, and its look good i need only tooltip of every auto generated series, i didn't find any solution of auto generated series tooltip I was attached the modified sample with snapshot (red circled tooltip) in sample project folder, can you modified my attached sample with tooltip that i was shown in snapshot ? modified sample is really very helpful for me.
I attached the sample to this post. Also here:
http://social.technet.microsoft.com/wiki/contents/articles/18199.event-handling-in-an-mvvm-wpf-application.aspx
you can see how handle events in MVVM way, so you can use the approach from the forum I suggested you.
Hi Stefan,
May be you forget to attached the sample application ?
In the link that you shared with me, StackedBarSeries are created in code behind file but we use pure MVVM, so we didn't follow that approach pleases see my previous post attached sample, in which i was used groupby in View Model, now i need only tooltip of every series that are auto generated through view model. How can we achieve this goal through MVVM ?