Home › forums › Using CanvasJS › Almost working with expanding panel in Bootstrap 3
Tagged: bootstrap collapse expand, solved
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?
You have to initialize the chart on shown.bs.collapse event in bootstrap. Here is an example.
You must be logged in to reply to this topic.