score:1

Accepted answer

i solved the problem by creating a separate canvas object for each chart.

before the function for creating a chart is called, a new canvas object is created.

document.getelementbyid("chartcontent").innerhtml += "<canvas id='"+messstelle+"' height='150vw' width='400vw'></canvas>";

"chartcontent" in html:

<p id="chartcontent"></p>

Related Query

More Query from same tag