Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

very slow performance with update() after 20 30 or more addData()

Open jbardu opened this issue 11 years ago • 3 comments

If I implement a crawling graph using addData(), as each point gets added, update() takes increasingly long until with 50 points on the graph, update() / addData() is taking 50ms per call.

For a small graph, small library, with a small amount of data, this is not expected.

Is update() going through a stack of changes to an initial graph? if so, with or without animations, this is not adding anything visually but is very cpu intensive.

jbardu avatar Apr 18 '15 05:04 jbardu

I confirm slow performance after multiple call update, with or without adding data.

shiryavsky avatar Aug 20 '15 13:08 shiryavsky

Which version are you using?

etimberg avatar Aug 22 '15 13:08 etimberg

Closing as abandoned. V1.1.0 has an improved animation system that better handles multiple charts on the same page. V2 has much improved update performance over v1

etimberg avatar Apr 03 '16 01:04 etimberg