Home forums Chart Support creating a chart on button click instead of on window.load

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30560

    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

    #30571

    @elbargho,

    You need to create chart-container dynamically before creating the chart. Please take a look at this updated JSFiddle.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.