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

Tooltip font defaults not applied and tooltip font overrides return error #11906

Open
teodorachiosa opened this issue Sep 24, 2024 · 0 comments

Comments

@teodorachiosa
Copy link

Expected behavior

I should be able to customize the tooltip font defaults. I was able to do this just fine for the legend.
If the defaults don't work because it's an intended behavior (as apparently explained here: #9781), then I should be able to use the overrides instead.
What other means of customizing the tooltip font properties are there?

Current behavior

The global default font properties work.
The legend font defaults work.

The tooltip font defaults don't work.
The tooltip font overrides don't work.

Reproducible sample

https://codepen.io/teodorachiosa/pen/ExqxMam?editors=1010

Optional extra steps/info to reproduce

I tried different chart types (pie, bar), still doesn't work.

Possible solution

No response

Context

I want to have a default font size for everything (Chart.defaults.font.size = 14) EXCEPT for the tooltp (Chart.defaults.plugins.tooltip.titleFont.size = 16), but I can't achieve this.

chart.js version

4.4.4

Browser name and version

Chrome 129.0.6668.59

Link to your project

No response

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