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

202
Views
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
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!