How do i plot contineous line graph

Nov 11, 2010 at 7:23 AM


   I want to show a line graph whose values are going to change contineously. It should behave in the same way as the example (..\Samples\v0.3\Simulation\SimulationSample.exe) from D3 website is behaving.
   Could some one help me out and tell me the code to add next point to the LineSeries dynamically?

Thanks & Regards,

Anand Shanbhag

Nov 11, 2010 at 10:31 PM

You update the DataSource for the LineGraph.  So if you are using an ObservableDataSource, then add a point to the Collection.


Your graph should update automatically.

Nov 12, 2010 at 6:30 AM
Thanks a lot!

It was very useful;  I have done the following things in my code;

  private ObservableDataSource<Point> source1;

this.source1 = new ObservableDataSource<Point>();
this.LineChart.AddLineGraph(this.source1, 2.0, "Data row 1");

 for (int i = 0; i < 100; i++)
     this.source1.AppendAsync(base.Dispatcher, item);



Thanks & Regards,

 Anand Shanbhag