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.
thanks in advanced
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.
You must be logged in to reply to this topic. Login/Register