Home forums Using CanvasJS incorrect display canvasjs chart on jQuery multiple tab

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Naveen Venugopal 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9290

    kralpc
    Member

    hello
    incorrect display canvasjs.com chart on jQuery multiple tab but when I use the width att problem is solved, but then the chart is not as responsive!

    jsfiddle

    please help me

    #9291

    Issue is 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 a JSFiddle.

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

You must be logged in to reply to this topic.