vcaz konzam
vcaz konzam

Reputation: 143

Kendoui dataviz adding data points on line charts

Is it possible to add a new and remove data points on a kendoUI line chart without refreshing the chart? Data will be coming in every 5 seconds and can go upto a maximum of 720 data points on the chart (chart will be showing data for the past one hour). If 720 data points are available on the chart the next data coming in should be appended at the end of the chart while removing the first data point on the chart.

Upvotes: 3

Views: 2857

Answers (2)

vcaz konzam
vcaz konzam

Reputation: 143

Got a demo link from a KendoUI representative which does dynamic data updates on a chart. I guess this should help.

http://demos.kendoui.com/dataviz/api/benchmark.html

Upvotes: 2

Tsvetomir Tsonev
Tsvetomir Tsonev

Reputation: 106514

My suggestion is to manipulate the data points via the API of the chart Data Source.

One refresh every 5 seconds or so shouldn't be a problem, especially if you turn off transitions:

$("#chart").kendoChart({
    transitions: false
});

Upvotes: 4

Related Questions