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

Specifiying a fixedStepSize for ticks should set autoSkip to false #4048

Open
j-snow opened this issue Mar 20, 2017 · 0 comments
Open

Specifiying a fixedStepSize for ticks should set autoSkip to false #4048

j-snow opened this issue Mar 20, 2017 · 0 comments

Comments

@j-snow
Copy link

j-snow commented Mar 20, 2017

Expected Behavior

I was expecting ['Options']['scales']['xAxes'][0]['ticks']['fixedStepSize'] = 1;` to give me a step size of 1.

Current Behavior

I got the step size that chart.js had worked out (2: 40,42,44, etc.).
I had to specify ['Options']['scales']['xAxes'][0]['ticks']['autoSkip'] = false; to get a step size of 1.

Possible Solution

Update the docs to mention that this needs to be done. (Easiest)
Or, in the code, set autoSkip to false if you are specifying a step size

Environment

  • Chart.js version: 2.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants