chartjs / chartjs/Chart.js

Missing space between multiline label inside tooltip

Open
#12,049 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### 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](https://github.com/user-attachments/assets/67d21884-9984-460b-9e52-cd0dbead83a8)

### 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.