Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
Samiam519 opened this issue Jul 19, 2023 · 1 comment

Comments

@Samiam519
Copy link

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

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
Copy link
Author

was using 'yAxisId' instead of 'yAxisID'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant