Hi,
I use XamDataChart to display multiples axes / series with a common DateTime X-Axis.
I wrote a DataPoint class with Timestamp and Values as properties. Then, I created an array of BindingList<DataPoint> representing all the series (1 element of array = 1 serie). I set the ItemsSource property of each serie to the array element.
My question is: How should I set the DataContext property of the chart ?
I tried to set it to an array element, seems to work but I don't think that's the correct way to do that. I don't know how to do it in the right way...
Regards
Daniel
Hi Petar,
My problem is that I have a dynamic count of graphs. The user loads a group which is defined in a configuration database.
Would it work with your wrapper class ?
All samples I found have a fixed amount of series...
Regards,
Hello Daniel,
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.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
Daniel,
One option would be to use a wrapper class to create the series on demand, as Petar suggests.
If you follow this series of posts you can see another option:
https://ko.infragistics.com/community/forums/f/ultimate-ui-for-wpf/50183/datatemplate-for-varying-number-of-series#264005
-Graham