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

212
Vistas
Facing issue while implementing € in "vue-d3-charts"

We are facing issue while implementing "€" symbol for currency, for "$" it works fine. Code snippet: Working fine with below code:

import { D3BarChart } from 'vue-d3-charts';

export default {
    name: "D3Chart",
    components: {
        D3BarChart,
    },
    props: {
      aemdata: {
        type: Object,
        required: true,
      },
      billingdata: {
        type: Object,
        required: true,
      },
    },
     data() {

    return {
      topUpColor : '#D3D3D3',
      deductionColor : '#696969',
      
      chart_config: {
        key: 'monthYear',
        values: ['topUp', 'deduction'],
        axis: { 
          yTicks: 10,
          yFormat: '$',
        },
        color: {
          keys: {
            'topUp': '#D3D3D3',
            'deduction': '#696969',
          },
        },
      },
    };
  },
}

Working screenshot: enter image description here

But when we are using below code:

import { D3BarChart } from 'vue-d3-charts';

export default {
    name: "D3Chart",
    components: {
        D3BarChart,
    },
    props: {
      aemdata: {
        type: Object,
        required: true,
      },
      billingdata: {
        type: Object,
        required: true,
      },
    },
     data() {

    return {
      topUpColor : '#D3D3D3',
      deductionColor : '#696969',
      
      chart_config: {
        key: 'monthYear',
        values: ['topUp', 'deduction'],
        axis: { 
          yTicks: 10,
          yFormat: '€',
        },
        color: {
          keys: {
            'topUp': '#D3D3D3',
            'deduction': '#696969',
          },
        },
      },
    };
  },
}

It is throwing Below error

"An error occurred while showing the error page Unfortunately an error occurred and while showing the error page another error occurred

Error details: TypeError: this.chart.destroyChart is not a function

Go back to home"

about 4 years ago · Juan Pablo Isaza
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