Home › forums › Using CanvasJS › callback function for render
This topic contains 1 reply, has 2 voices, and was last updated by Sanjoy 3 years, 3 months ago.
Is there a way to have a function called after a chart render is complete? Some renders can take a while so it would be nice to trigger something when complete, thanks
We don’t have any trigger like that as of now. But given that all dataPoints in chart are rendered at once after calling chart.render() & CanvasJS is able to render hundreds of thousands of dataPoints in few hundred milliseconds, so you will have no issue calling a function after calling chart.render().
In case if the issue still persists and rendering is getting delayed, could you please recreate the issue in jsfiddle, so that we can look into it properly and come up with a solution.
You must be logged in to reply to this topic.