Home forums Using CanvasJS Chart only Draws after Inspect Element Reply To: Chart only Draws after Inspect Element

#23272

Vishwas R
Keymaster

@wonky,

I went through the source code of the page that you have shared and observed that, within the showScript1757, showScript1758 and showScript1759 methods, you are instantiating new charts as chart_1757, chart_1758 and chart_1759 but calling render method as chart.render() and not chart_1757.render(). Calling render method on instantiated objects should work fine in your case, i.e changingchart.render(); to chart_1757.render();.


Vishwas R
Team CanvasJS