I have a collection of objects that contain everything that I need to create a series and I want to use a DataTemplate to create series for however many objects are in the collection. Unfortunately, it seems that there are no DataTemplate examples in any of your explanations and I don't know if this is even possible.
Is it possible to create a number of series at runtime using DataTempates?
Hello Ed,
Here is a working link for the SeriesCollection class:
http://help.infragistics.com/NetAdvantage/WPF/CLR4.0/?page=InfragisticsWPF4.Controls.Charts.XamDataChart.v12.2~Infragistics.Controls.Charts.SeriesCollection_members.html
After reviewing the multiple series examples, I was forced to change from a MVVM ViewModel which contained the data, to the less desirable data code behind. I am almost finished with the changeover, but I feel this is far from ideal.
I was also hoping I could place all of my Series into the SeriesCollection and have them automatically displayed, but I don't see how to bind the SeriesCollection with the XamDataSource or ItemsSource.
Additionally, the documentation link for SeriesCollection is broken, so I can't review any code samples about this.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and I can suggest you see the sample in our Samples Browser under xamDataChart / Display – Series / Multiple Series section, where it shown how to use multiple series in the XamDataChart. Also I can say that if you don’t know the number of Series you will need you can add them run time. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.