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

autoSkip support for calculateTickRotation #6075

Closed

Conversation

benmccann
Copy link
Contributor

@benmccann benmccann commented Feb 17, 2019

If you have autoSkip on then you can have calculateTickRotation return 0. This addresses space constraints via auto-skipping instead of rotation. As a result, it leaves more room for the chart contents by keeping the scale height low since there's no rotation. The current logic is not cohesive and calculates the labelRotation and _autoSkip independently often coming up with results that are fairly sub-optimal when combined

Closes user reports #3981 and #5765. Closes my previous attempt #6072. Partially addresses #6074

@kurkle
Copy link
Member

kurkle commented Feb 18, 2019

Rotation and auto skipping might not work too well together, but I don't think a "magic button" is the solution.

If a user wants maxRotation = minRotation when autoSkip = true, it can be specified in config.

Just my opinion, feel free to disagree 👼

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

Successfully merging this pull request may close these issues.

2 participants