-
Notifications
You must be signed in to change notification settings - Fork 467
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
Offset not working (when align: 'center') #26
Comments
By default, You should try Chart.defaults.global.plugins.datalabels.align = 'end'; You could also use Chart.helpers.merge(Chart.defaults.global.plugins.datalabels, {
align: 'end',
anchor: 'end',
font: {
size: 11,
weight: 700
},
offset: 8
// ...
}); |
Hi @simonbrunel Wow, thanks! It works now. I just add :
And works like a charm. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, cool plugin
But I have an issue with offset options: https://chartjs-plugin-datalabels.netlify.com/positioning#alignment-and-offset
The label is not pulled out from the anchor point. It just stays there.
This is my code:
Any help would be greatly appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: