uksz
uksz

Reputation: 18719

Highcharts: smooth adding point to line chart

I am working with Highcharts, and I am trying to implement very smooth line chart, that will stream the data that I fetch from a server. So far, the data comes every second, and there is a small lag in displaying the values. I am adding the values as follows:

chart.series[0].addPoint(newPoint), false, true);
chart.redraw();

and as animation I use:

animation: Highcharts.svg

I would like the transition to be as smooth as those graphs here:

http://smoothiecharts.org/examples/server-load.html

Any ideas?

Thank -uksz

Upvotes: 0

Views: 1211

Answers (1)

Nishith Kant Chaturvedi
Nishith Kant Chaturvedi

Reputation: 4769

you should use animate while add point as below

chart.series[0].addPoint(newPoint,true, true, animate)

also check, are you setting any time for animate function and its calling at update or not.

Upvotes: 2

Related Questions