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

Padding to axes label #4513

Closed
EmilMoe opened this issue Jul 16, 2017 · 3 comments
Closed

Padding to axes label #4513

EmilMoe opened this issue Jul 16, 2017 · 3 comments

Comments

@EmilMoe
Copy link

EmilMoe commented Jul 16, 2017

I have been looking all over Google and your documentation, but it seems impossible to add padding right to this "PROCENT"?

image

@etimberg
Copy link
Member

@EmilMoe #4382 added a lineHeight setting to the scale titles that could be used to add some padding here by setting it larger than the font size. Would it be possible to give this a try and see how it goes?

@EmilMoe
Copy link
Author

EmilMoe commented Jul 16, 2017

@etimberg I'm adding it like this, but nothing changes. Maybe I misunderstand it?

scaleLabel: {
  display: true,
  labelString: 'PROCENT',
  fontColor: 'rgba(0,0,0,0.4)',
  fontSize: 10,
  lineHeight: 20
}

@etimberg
Copy link
Member

That should work, but there is more extensive discussion in #4505. I'm going to fold this in with that issue since they are the same underlying issue.

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

2 participants