question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Multichart in same page only loads one

See original GitHub issue

Would 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:closed
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

6reactions
thabarbadoscommented, Apr 21, 2022

Fixed in release 4.0.6, except for using Vue 2 and chartjs-plugin-annotation simultaneously. Added a paragraph about this to the docs

3reactions
ShacharMeir007commented, Apr 18, 2022

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found