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

Legend: boxPadding does nothing #11803

Closed
teodorachiosa opened this issue Jun 10, 2024 · 0 comments · Fixed by #11817
Closed

Legend: boxPadding does nothing #11803

teodorachiosa opened this issue Jun 10, 2024 · 0 comments · Fixed by #11817
Labels
type: bug type: types Typescript type changes

Comments

@teodorachiosa
Copy link

teodorachiosa commented Jun 10, 2024

Expected behavior

Providing a number value to boxPadding should update the padding between the colored box and the label text, as per the documentation:

    /**
     * Padding between the color box and the text
     * @default 1
     */
    boxPadding: number;

Current behavior

boxPadding does nothing. There's always the same spacing between the box and the text.
image

Reproducible sample

https://codepen.io/teodorachiosa/pen/jOoLREr

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.2
Also reproducing on 4.4.3

Browser name and version

Chrome 125.0.6422.147

Link to your project

No response

@teodorachiosa teodorachiosa changed the title Legend labels - boxPadding does nothing Legend: boxPadding does nothing Jun 10, 2024
@LeeLenaleee LeeLenaleee added type: types Typescript type changes labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug type: types Typescript type changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants