-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Add maxLines option for gridLines [v2 enhancement] #1859
Comments
@morleyzhi there's a similar option here https://github.com/nnnick/Chart.js/blob/v2.0-dev/src/scales/scale.linear.js#L162 If yours produces different results, I'd be more than happy to look over a PR. |
...Actually, I just imported the latest version of Chart.js, and it looks like it works. So we're good. Thanks! |
Sorry about this -- I was mistaken. I had added back in the ticks display for testing, and I mistook the label-spacing for maxTicksLimit usage. |
Merged #1863 |
One of the projects I'm working on doesn't have any axis labels, so I wound up in a situation where there were a lot of gridLines, to the point where it made the chart illegible. I think being able to add a max number to the gridLines config could be useful:
In fact, I've already done this on an illegitimate fork:
https://github.com/morleyzhi/OkChart.js/commit/5d42d12ffe3168ba28def36135fcc3dfa6725061
If you think this is worth folding into Chart.js proper, I can make a pull request for it.
The text was updated successfully, but these errors were encountered: