Skip to content

Defaults tooltip option not working at all #9781

@Kilazur

Description

@Kilazur

Expected Behavior

When setting default options for tooltips, they should be taken into account.

Current Behavior

The custom default options are completely ignored.

Possible Solution

As far as I can tell, it's either just a small overlooked issue on Chart.js's side, or I don't understand how to set these defaults. A possible solution to that would be some more "defaults configuration" examples in the documentation, because tbh this point is a little confusing :)

Steps to Reproduce

http://jsfiddle.net/a40dhzsm/1/

Context

I'm simply trying to add a "%" symbol at the end of tooltip labels.

Environment

  • Chart.js version: 3.5.1
  • Browser name and version: Firefox 93.0 / Chrome 94.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions