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?
Hi Team,
Can we display dynamic multiple series in bar chart type.Do you have any sample to do that.
Regards,
Sridhar
Hello Ed,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks Stefan, I will use this information moving forward!
Ed
Our developers said that this behavior is expected since the DataTable doesn't implement INotifyPropertyChanged interface and the XamDataChart cannot be notified when the DT changes, so I can suggest you use reset the DataContext like this in the timer_Tick event handler:
private void timer_Tick(object sender, EventArgs e) { int x, y; x = rand.Next(3, 23); y = rand.Next(3, 26); table.Rows.Add(new object[] { "Point", x, y }); this.DataContext = null; this.DataContext = table.DefaultView; }
Hope this heslp you.
Thank you much for your help Stefan!