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

Invalid rendering when axis is stacked and the height of chart is fixed. #62

Closed
stockiNail opened this issue May 29, 2021 · 4 comments
Closed
Assignees
Labels

Comments

@stockiNail
Copy link
Contributor

See discussion #61.

There is an issue of chart rendering when a linear scale is stacked and the height of the chart is fixed.
Sounds an issue related to Chart.js.

bugSize2

Good catch @MartinSchwarzbauer

@stockiNail
Copy link
Contributor Author

@MartinSchwarzbauer I have created an issue to Chart.js, because sounds a bug of Chart.js

See chartjs/Chart.js#9178

@stockiNail stockiNail self-assigned this May 29, 2021
@stockiNail stockiNail added the bug label May 29, 2021
@stockiNail
Copy link
Contributor Author

@MartinSchwarzbauer I have checked more in details you axis configuration and there is a property which is the root cause of the rendering.

Remove the bounds setting in the linear axis or set to Bound.TICKS (instead of Bound.DATA), and it works.

 y_axis.setBounds(Bounds.TICKS);

@stockiNail
Copy link
Contributor Author

The issue has been solved by chartjs/Chart.js#9181.
Chart.js version 3.3.1 is needed!

@stockiNail
Copy link
Contributor Author

Chart.js version 3.3.2 has been added to the master branch. With that, the issue about the usage of Bounds.DATA has been solved.

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

No branches or pull requests

1 participant