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

Chart starts rendering 5~ pixels to the right #3141

Closed
name-is-already-taken opened this issue Aug 12, 2016 · 1 comment · Fixed by #3553
Closed

Chart starts rendering 5~ pixels to the right #3141

name-is-already-taken opened this issue Aug 12, 2016 · 1 comment · Fixed by #3553
Assignees
Milestone

Comments

@name-is-already-taken
Copy link

name-is-already-taken commented Aug 12, 2016

The entire charts starts rendering around 5-10 pixels to the right. I am not sure if this is an intended feature or a bug.

How it renders:

chartjs-render-offset

How I expected it to render:

chartjs-chartjs-render-no-offset

Jsfiddle here, but this happens even on the premade template.

If this is intended, i find it weird that it only adds padding on the left. Maybe it calculates the width of the graph with the labels sideways?

Btw, my only problem with this, is that it doesn't look centered in a container unless I add negative margin.

@etimberg
Copy link
Member

This looks like it is related to the ticks.padding setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants