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

Scriptable tick fonts #6939

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Conversation

benmccann
Copy link
Contributor

Closes #2442

@kurkle
Copy link
Member

kurkle commented Jan 9, 2020

It would be more efficient to use one callback for font. But thats a bit bigger change.
Something to consider before alpha through.

Copy link
Member

@etimberg etimberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Just want to confirm that there's no major performance hit. I think it's OK now because we filter the ticks before measuring in most cases

src/core/core.scale.js Show resolved Hide resolved
@benmccann
Copy link
Contributor Author

There's no perf hit because there are so few labels - this is run only after autoSkip. I agree resolving each option individually seems slightly wasteful, but I was trying to follow the pattern from _resolveDataElementOptions and it seems like that's what's done there

etimberg
etimberg previously approved these changes Jan 10, 2020
@benmccann
Copy link
Contributor Author

@kurkle would you be able to give this a look? thanks!

@etimberg etimberg merged commit 738ee34 into chartjs:master Jan 14, 2020
@etimberg etimberg added this to the Version 3.0 milestone Jan 14, 2020
kurkle added a commit to kurkle/Chart.js that referenced this pull request Jan 21, 2020
kurkle added a commit to kurkle/Chart.js that referenced this pull request Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add possibility to change style for each of the ticks
3 participants