Home › forums › Chart 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.
You must be logged in to reply to this topic.