[Bug]: Multichart in same page only loads one
See original GitHub issueWould you like to work on a fix?
- Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
I’ve been working with the library and when I needed to show multiple charts it did’t work. I was using the 4.0.4
version then downgraded it to the version 4.0.3
and worked perfectly.
I just wanted to report it.
Reproduction
https://codesandbox.io/s/optimistic-hill-nc0h95?file=/src/App.vue
chart.js version
3.7.1
vue-chartjs version
4.0.4
Possible solution
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11
Top Results From Across the Web
multiple chartjs in the same page - Stack Overflow
Use only one window.onload window.onload = function () { window.myRadar = new Chart(document.getElementById("canvas1").getContext("2d")).
Read more >Bug when loading multiple charts on a page...
When the following page renders often one or more of the charts only show "Loading Chart...". The same thing is happening with your...
Read more >TS Data not storing Data slow to load - MultiCharts
I have the local data storage box checked yet every time I load a chart it ... symbol with the same resolution and...
Read more >How to Have Multiple Charts in One Page With Chart JS
How to Have Multiple Charts in One Page With Chart JSTo display multiple charts in one page in Chart JS you need to...
Read more >Render Multiple Charts in a Page - CanvasJS.com
Position the chart container wherever the chart is supposed to be rendered in the page, with separate chart-container id for each chart. HTML:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in release 4.0.6, except for using Vue 2 and chartjs-plugin-annotation simultaneously. Added a paragraph about this to the docs
@thabarbados I think I have a solution for this bug, at least it worked when I tested it. Is there a way for me to push my changes?