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

How to set up Y axis right? #305

Open
kkuez opened this issue Aug 20, 2021 · 1 comment
Open

How to set up Y axis right? #305

kkuez opened this issue Aug 20, 2021 · 1 comment

Comments

@kkuez
Copy link

kkuez commented Aug 20, 2021

The highest label on the Y axis represents the highest value in the list, what about graphs with higher Y labels then the highest value in the list?

Can I somehow setup the Y axis?

@kkuez
Copy link
Author

kkuez commented Aug 20, 2021

Found the answer myself:
lineChart.setScale(new Scale(0, highestValueY));
...for a graph with 0 and the highestValue.

You may close this ticket, thanks.

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