Home forums Using CanvasJS Line chart gets right cut when using in jqueryui tabbed pannel Reply To: Line chart gets right cut when using in jqueryui tabbed pannel

#7002

Anjali
Participant

Hi,

Issue was because when you initially render the chart, Tab 2 and Tab 3 will have zero width and height because of which canvasjs takes default width and height. So what we need to do is, call chart.render() whenever a tabs becomes active there by updating the chart’s size.

Here is the working code http://jsfiddle.net/canvasjs/vzre7gwg/


Anjali