Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

107
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda