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

Fixes #44: Custom scale on line graph doesn't start at origin #53

Closed
wants to merge 1 commit into from

Conversation

ulrichsg
Copy link

No description provided.

@nonsense
Copy link

This commit doesn't fix the issue for me. It fails with the following configurations and data:

chart data: [0,1,0,4,0,0,0,0,0,0,0,0,0,0,0]

scaleOverride : true,
scaleSteps : 10,
scaleStepWidth : 1,
scaleStartValue : 1

I hope this test is helpful.

@ulrichsg
Copy link
Author

I suppose that is because your data contains values that lie below scaleStartValue. Correct me if I'm wrong, but I don't believe Chart.js can show values below the X axis. If I set scaleStartValue to 0, the graph looks fine for me.

@nnnick
Copy link
Member

nnnick commented Apr 12, 2013

Custom scales have now been fixed - they were out by one but this has been fixed with the 0.2 version bump.

@nnnick nnnick closed this Apr 12, 2013
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.

None yet

3 participants