-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Legend Padding #6544
Comments
it can set the padding for legend? |
Really hoping for a simple way to set padding between whole legend itself and the chart somewhere in Chart.defaults.global.legend. |
This would be helpful for me as well. |
I would like to add some space between top-left aligned legend and chart. Is it possible? |
Implementing the above suggested enhancement as soon as possible would be beneficial to us as well. |
Another vote for this one. The example @fsdkarthik gave works in some cases but it's very much a hack. Ideally we'd have the ability to set padding similar to how it works for the overall chart padding in layout: https://www.chartjs.org/docs/latest/general/padding.html#top-left-bottom-right-object |
Please implement this: |
Hi guys. If you want to customize the legend visually, please use an HTML legend. Due to Chart.js using canvas, we can't implement every requested feature cause this will bloat the code. |
I have been having an issue with my chart legends when trying to add padding.
I am hoping for a feature that allows for more than just padding between the items in the legend. Something like:
At least in my case this would prevent having to create the legend as a separate object.
The text was updated successfully, but these errors were encountered: