-
-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chart doesn't load in bootstrap tab #157
Comments
Please provide a codepen or jsfiddle for reproduction. |
See if this is sufficed,
Chart in the first tab-1 works but when i switch to tab-2, the chart doesn't show at all. Thanks |
Hey, I need a working example to debug it. Are you using a vue-bootstrap lib? Or pure bootstrap? |
Its on pure bootstrap. May need sometime setting the reproduction up.. |
You can easy load it in codepen just add the bootstrap files the vue-chartjs cdn and you can start. |
Try navigating between tabs, only tab 1 is loaded and other tabs won't. |
Thanks for this! Well, the problem is, how chartjs works if you pass In your example it's the But the vue chart component gets loaded and chartjs sets the chart height and width to 0. There are two possible solutions for you.
|
Got it! Thanks! |
For anyone that is looking for a solution now, you can simply add |
Expected Behavior
Charts in both active and inactive tab to load
Actual Behavior
Only chart in active tab load but not the inactive tab
The text was updated successfully, but these errors were encountered: