You must be logged in to post your query.
Home › Forums › Chart Support › chart not showing
I am following this tutorial. https://canvasjs.com/docs/charts/how-to/render-multiple-charts-in-a-page/
It works fine however when I tried to modify my code and display my chart, it is not working.
I realized when I added a line above the chart it won’t work.
Chart is not getting rendered as the line before chart instantiation is throwing error. You seem to be doing it wrong. element.innerHTML gives you the content of the element whereas element.innerHTML = "Some Content"; is used to change the content of the element. Please refer to this MDN page for more information on innerHTML property. Please take a look at this updated JSFiddle for complete code.
element.innerHTML = "Some Content";
You must be logged in to reply to this topic. Login/Register