Skip to content

Error with styling external tooltip: bodyFont not found #8673

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: -

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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