Skip to content

Respect min and max when building ticks#4860

Merged
simonbrunel merged 1 commit intochartjs:masterfrom
benmccann:min-max-fix
Oct 20, 2017
Merged

Respect min and max when building ticks#4860
simonbrunel merged 1 commit intochartjs:masterfrom
benmccann:min-max-fix

Conversation

@benmccann
Copy link
Contributor

@benmccann benmccann commented Oct 18, 2017

This PR is a potential alternative to #4844

Replaces #4844
Fixes #4845

Copy link
Member

@simonbrunel simonbrunel left a comment

Choose a reason for hiding this comment

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

Looks good, I thought it would have more impact on unit tests.

Could you please update the fiddle in this comment to see the new behavior?

@etimberg
Copy link
Member

Looks good to me as well

@benmccann
Copy link
Contributor Author

Here's a screenshot demonstrating the fix.

screenshot from 2017-10-19 08-16-22

I'm curious for next time though... How do I update a fiddle with a locally built version of Chart.js?

@etimberg
Copy link
Member

No good way to update a fiddle. Usually you have to copy the built version into the HTML section inside a script tag .... not super great or performant

@simonbrunel simonbrunel merged commit b64fd5d into chartjs:master Oct 20, 2017
yofreke pushed a commit to yofreke/Chart.js that referenced this pull request Dec 30, 2017
Generate time scale ticks (`ticks.source: 'auto'`) based on the effective visualized range instead of the actual data range, meaning that the computed units and/or step size may change if the time options min and max are different from the data min and max.
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
Generate time scale ticks (`ticks.source: 'auto'`) based on the effective visualized range instead of the actual data range, meaning that the computed units and/or step size may change if the time options min and max are different from the data min and max.
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.

3 participants