Hi all,
I am following the example given in WPF demo -> Controls -> Visualization -> Chart -> Performance -> Live Data, in particular, I am looking at this line of code:
In my data set, I am updating over 20 line series every second, and resetting the view data with this.Data = null and this.Data = this.cpuData seems to be incredibly slow. Is there a better way to update the chart with live data?
Thanks,
Jin
I am following the example given in WPF demo -> Controls -> Visualization -> Chart -> Performance -> Live Data, in particular, I am looking at this line of code:
private
void
OnTimerTick(
object
sender, EventArgs e)
{
this
.nowTime =
this
.nowTime.AddMilliseconds(500);
this
.UpdateData(
this
.nowTime);
this
.SetUpAxisXRange(
this
.nowTime);
this
.Data =
null
;
this
.Data =
this
.cpuData;
}
In my data set, I am updating over 20 line series every second, and resetting the view data with this.Data = null and this.Data = this.cpuData seems to be incredibly slow. Is there a better way to update the chart with live data?
Thanks,
Jin