Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

update chart js with new data

// update the first dataset's value of 'March' to be 50
myBarChart.data.datasets[0].bars[2].value = 50;

// animate update of 'March' from 90 to 50.
myBarChart.update();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #chart #js #data
ADD COMMENT
Topic
Name
7+9 =