Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
Multiple instances of vue-chartjs

I'm trying to implement multiple Doughnut type graphs into a single component. Library: https://vue-chartjs.org/guide/#creating-your-first-chart

<div class="row">
    <div class="col-12 col-lg-6">
        <strong>Všetky</strong>
        <Doughnut chart-id="workNonWorkData" :dataset-id-key="'key1'" :chart-data="workNonWorkData" />
    </div>
    <div class="col-12 col-lg-6">
        <strong>Schválené</strong>
        <Doughnut chart-id="workNonWorkAprData" :dataset-id-key="'key2'" :chart-data="workNonWorkAprData" />
    </div>
</div>

Both doughnuts work on their own when the other one is commented out. But when I want to have both, only latter one displays. I checked canvas ids and they are different. So I'm thinking vue takes these two as the same instance?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I was using the 4.0.4 version, downgraded it to the 4.0.3 version and it works.

Hope it helps.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!