-
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
Finishing removing old major/minor options #7042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this already have migration docs?
21755b2
to
1904b79
Compare
Yeah, it should be in the migration guide already |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just want to confirm for my own knowledge, that going forward if I want to bold the major
ticks on the time scale for instance, I'd use the scriptable options for the font and check tick.major
?
Should we add a sample for that?
Yep! That'd be the way to do it. The financial sample does that: https://www.chartjs.org/samples/master/advanced/financial.html |
Ah, perfect! |
Could fix the samples using |
Yeah, good idea. I just copied your changes from #7020 for those two files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably make to major
a boolean instead of object, since it only accepts enabled
property now.
Just a personal note about scriptable options: I find those handy at times, but also cumbersome for really simple tasks (like font styling). IMO it should not be the only option.
This one needs a rebase, I think its good to go after that. |
8f7d8c7
to
674536e
Compare
674536e
to
2bbdac6
Compare
2bbdac6
to
b6200a3
Compare
#6939 removed the concept of different formatting for major and minor ticks and replaced it with scriptable tick options. I found a place where I forgot to remove the old options
ticks.callback
already has a test, so I was able to just remove the old tests and didn't have to add or update any