You must be logged in to post your query.
Home › Forums › StockChart Support › creating a chart on button click instead of on window.load
Hi, as in the title, i’m trying to create a chart on button click instead of on window.load. I’ve put the chart constructor in a function called “adder()” which is called on button click, but my code doesn’t work. link: https://jsfiddle.net/vue3n820/
thanks in advanced
@elbargho,
You need to create chart-container dynamically before creating the chart. Please take a look at this updated JSFiddle.
We suggest you to post queries related to Charts in Chart Support Forum. Considering this as duplicate of creating a chart on button click instead of on window.load. Hence closing the same.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register