Home Forums Chart Support Chart won't render to my div at the click of a button?

Chart won't render to my div at the click of a button?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #22962

    Hi there,

    I’m trying to create a button that when clicked, triggers a parameter function which at the end of this said function, calls the create_pie_chart(param1, param2, param3, param4). These parameters are created during the original function. I have a <div> tag where I try to render the chart to, but on clicking the button, the blank space on the webpage for the graph remains blank (though the 4 parameters are correctly found, as I print them out on the page as a test). If anyone has any ideas on why my chart isn’t rendering, i’d love to hear them. My code is attached as a JSFiddle. https://jsfiddle.net/thpk8fc6/

    Thanks.

    #22965

    @unit1234,

    Please take a look at this updated jsfiddle.

    __
    Priyanka M S
    Team CanvasJS

    #22969

    thankyou so much!

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

You must be logged in to reply to this topic.