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

Add margin-left on pie chart legend #10280

Open
adityagoel28 opened this issue Apr 4, 2022 · 4 comments
Open

Add margin-left on pie chart legend #10280

adityagoel28 opened this issue Apr 4, 2022 · 4 comments

Comments

@adityagoel28
Copy link

Expected behavior

How do I add a left-margin to the legend and shift it to a little right side, as shown in the image below.
image

Current behavior

There is a lot of gap between pie chart and legend

Reproducible sample

https://jsfiddle.net/h9rn7mL2/

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v3.7.1

Browser name and version

No response

Link to your project

No response

@adityagoel28
Copy link
Author

Please tell how to do this?

@joaovictor-local
Copy link

I have the same need, I tried this tutorial: https://www.youtube.com/watch?v=87rnMzENg3U, but looks it doesn't works on >= 3.7

@RVXD
Copy link

RVXD commented Nov 1, 2022

Please add full padding support to legend and legend items. Very much needed.

@Dean-NC
Copy link

Dean-NC commented Jan 19, 2023

Please add support. It's a basic/fundamental need that I need often, especially for line and scatter with legend on left/right.

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

5 participants