Skip to content

Missing space between multiline label inside tooltip #12049

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

Open
mrleblanc101 opened this issue Mar 31, 2025 · 1 comment
Open

Missing space between multiline label inside tooltip #12049

mrleblanc101 opened this issue Mar 31, 2025 · 1 comment

Comments

@mrleblanc101
Copy link

Expected behavior

Given this label ['Yellow', 'subTitle'].
This will render as 2 seperate lines on the canvas.à
I would expect the tooltip to render as Yellow, subTitle.

Current behavior

But currently, it results in Yellow,subTitle with no space after the comma.
Image

Reproducible sample

https://jsfiddle.net/Leelenaleee/3d50fkL9/26/

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.8

Browser name and version

No response

Link to your project

No response

@mrleblanc101
Copy link
Author

Currently, the workaround is to add the space in the second line label like so:
["Yellow", " subTitle"]

Image

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

1 participant