apertureless / vue-chartjs

📊 Vue.js wrapper for Chart.js
https://vue-chartjs.org
MIT License
5.49k stars 831 forks source link

[Bug]: Rendering a chart with multiple y axes will display both datasets on the larger scale #1051

Closed Samiam519 closed 11 months ago

Samiam519 commented 11 months ago

Would you like to work on a fix?

Current and expected behavior

Rendering a chart with multiple y axes will display both datasets on the larger scale. I'm trying multiple ways in the chart options to tell the second y axis to use another scale. Expected behavior is the second dataset to render on the second scale.

I've forked the vue-chartjs repo example to share

Reproduction

https://stackblitz.com/edit/github-xchppm?file=src%2FchartConfig.ts

chart.js version

4.3.0

vue-chartjs version

5.2.0

Possible solution

No response

Samiam519 commented 11 months ago

was using 'yAxisId' instead of 'yAxisID'