Home forums Using CanvasJS Almost working with expanding panel in Bootstrap 3

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 5 months, 3 weeks ago.

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

    HeavyThumper
    Member

    I’ve gotten my charts to do most of what I want, but…

    I display my charts (several) within a bootstrap collapse panel. This panel is normally collapsed – I expand when I want to view the charts.

    The problem I’m having is if I create & render the charts while the panel is collapsed, the charts look…wrong. If I then re-size the browser window in any way, the charts immediately fix themselves to the proper sizing and everything is great. But I have to re-size the browser.

    If I create/render the charts and have the panel initially expanded they work fine. But I don’t want the panel open initially!

    Is there a method that will refresh the chart?

    #11339

    Vishwas R
    Keymaster

    HeavyThumper,

    You have to initialize the chart on shown.bs.collapse event in bootstrap. Here is an example.

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

You must be logged in to reply to this topic.