I would like to .update() the chart when data changes. Right now, passing data into the chart component triggers a .destroy() and initializeChart(), which completely redraws the chart instead of transitioning the data from one point to another.
I see update, addData and others in the extras, but I couldn't figure out how to call those when new props were passed in.
I would like to
.update()
the chart when data changes. Right now, passingdata
into the chart component triggers a.destroy()
andinitializeChart()
, which completely redraws the chart instead of transitioning the data from one point to another.I see
update
,addData
and others in theextras
, but I couldn't figure out how to call those when new props were passed in.