Skip to content

Error with styling external tooltip: bodyFont not found #8673

@vividos

Description

@vividos

Expected Behavior

External tooltips should work as mentioned in the documentation

Current Behavior

The external tooltip function issues a JavaScript error on non-existant object tooltipModel.bodyFont.

Possible Solution

None known to me

Steps to Reproduce

I have no complete codepen demo, but it's easy to create:

Uncaught TypeError: tooltipModel.bodyFont is undefined

Inspecting the tooltipModel, there is no object of this type. May just be a documentation error, though.

Context

I'm testing the external tooltips functionality, as I'm using it in my project, which I'm trying to port to Chart.js 3

Environment

  • Chart.js version: 3.0.0-rc
  • Browser name and version: Firefox 86.0.1
  • Link to your project: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions