2
I’m using the Chart js. to plot graphics, but the problem occurs when I try to update it using the method update()
.
myBar.datasets[0].bars[0]=10;
myBar.update();
Then I get the following error:
"Typeerror: bar.save is not a Function"
Someone has already successfully used this method?
You can put your object
myBar
...– Sergio
Probably the elements of
bars
are not integer, but objects with a methodsave
. See on source code the functionsupdate
andeachBars
(line 2080). Are you sure this is the right way to change a chart? It’s not...bars[0].algumaOutraCoisa = 10
?– mgibsonbr