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 4 months, 1 week ago.
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/
Please take a look at this updated jsfiddle.
Priyanka M S
thankyou so much!
You must be logged in to reply to this topic.