-
Notifications
You must be signed in to change notification settings - Fork 464
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 and lineHeight has no effect #153
Comments
Hi @aldipower. |
Did this ever get resolved? Same issue with the latest version. Line height and padding do nothing. |
While I've created a jsfiddle, the thought occured to me, that this problem can be a part of a custom webfont. Is this possible? To solve this, the line height or padding parameter should be a option. And here I got the same problem. Both parameter have no effect to the labels. Do you have an idea? |
FYI My project was using a custom font: Open Sans |
I'm having the same problem. No custom font. However, I noticed if you just supply a number to padding, it does have an affect. It appears to add right padding |
I'm also using a custom font and ran into the same issue.
|
Got some similar problem, the padding.bottom stopped to work suddently (I'm using Vue.js) fixed it with a : options: {
plugins: {
datalabels: {
formatter: value => value+ "\n\n"
},
},
}, |
I'm having the same issue on version 2.2.0 on a horizontal bar chat. I want to add vertical padding to my labels but it has no effect.
|
Hi!
![Screenshot_2019-10-10](https://user-images.githubusercontent.com/859154/66565451-d0910c80-eb62-11e9-8637-5a0cb6e38fb6.png)
I am trying to vertically center the datalabels in my horizontal bar chart, so they are perfectly vertically aligned in the middle of the bar. As you can see they are a little bit more to the top of the bar.
To achieve this I tried to give some padding or a font.lineHeight, but both options have zero effect at all, as they were ignored.
I could use the offset with bottom alignment, but this is already used for the left/right positioning of the labels. So not many options are left. Why is the padding not working?
This is my configuration:
Tried it like that:
Or
Nothing happens.
The text was updated successfully, but these errors were encountered: