Home forums Using CanvasJS Chart won't render to my div at the click of a button?

This topic contains 2 replies, has 2 voices, and was last updated by  unit1234 2 months ago.

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

    unit1234
    Member

    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

    Priyanka M S
    Member

    @unit1234,

    Please take a look at this updated jsfiddle.

    __
    Priyanka M S
    Team CanvasJS

    #22969

    unit1234
    Member

    thankyou so much!

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

You must be logged in to reply to this topic.