Jacco van den Berg

Results 222 comments of Jacco van den Berg

Seems that during production in this line https://github.com/chartjs/Chart.js/blob/d4e106cc9cf19a273e5485ffaf6158f663e65717/src/helpers/helpers.intl.js#L4 The minimumFractionDigits and maximumFractionDigits in the options become NaN instead of 0. Issue might be related to #10672

Indeed same issue as #10672 ![image](https://user-images.githubusercontent.com/39033624/190493848-6ecfc89f-bec2-4ad6-a7f9-0d1c7a3f4ddd.png)

It looks like this is out of our control and you need to use the option @kurkle pointed out, when debugging al the numbers are correctly but it fails on...

Closing this as it is not a chart.js issue but a swc minifier issue instead

You can instead of registering the plugin globally by calling `Chart.register(chartDatalabels)` register it locally to the chart you want to display `new Chart(ctx, {data, optsions, plugins: [chartDatalabels]})` or disable it...

Your sample has compilaton errors, please provide a working reproducable sample

Putting `swcMinify: false` in `next.config.js` will resolve the issue.

I don't think so since you import and register everything with the auto import from chart.js. Do you have a link with a reproducable sample?

Not sure what exactly is causing the issue, when I try a simpeler case with the react wrapper or with plain js it works fine: wrapper: https://codesandbox.io/s/react-chartjs-2-chart-js-issue-template-forked-wf1d04?file=/src/App.tsx plain js: https://codesandbox.io/s/react-chartjs-2-chart-js-issue-template-forked-ce1ugl?file=/src/App.tsx

My preference goes to removing it so any scale ID except for `x`/`y` creates a second scale next to the main one. @etimberg what is your opinion on this?