Closed CraigHarley closed 5 years ago
@CraigHarley Just update the data and it should update the chart. See the "Line Chart" example on the ng2-charts site and click the button that says "CLICK".
Hello,
The Line Chart example shows how to update the values but does not show how to get access to the methods of Charts.js.
I solved it on my side by disabling animation (like on the example) but it's not like in this Chartjs example : http://jsbin.com/yitep/5/edit?html,js,output
For reference/example, this Angular2 HighCharts implementation does this : https://github.com/gevgeny/angular2-highcharts#dynamic-interaction-with-chart-object
It's far from perfect but it gives you access to the Highcharts object.
Thanks @jarnix that's exactly what I'm looking for
This does not answer your question though (and I need the same thing), the reference was intended as a suggestion for the developers.
Closing for inactivity. If this is still an issue, please provide an example showing the current behavior and describe the expected behavior.
Hi, it says this chart is based on Chart.js, how would I go about accessing methods such as .addData() and .removeData(), so as to allow live updates.
Thanks!