Skip to content

Hover namespace not documented #8296

@stockiNail

Description

@stockiNail

Documentation Is:

  • Missing or needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

PR #7922 add new interaction namespace inside the options. As far as I have understood, options.hover and tooltip are using options.interaction (and then defaults.interaction) as defaults when the specific options in options.hover and tooltip are not set.
This enables the possibility to set hover of tooltip separately starting from the same default.

The hover namespace is mentioned twice into documentation:

  1. https://www.chartjs.org/docs/master/general/interactions/modes
  2. https://www.chartjs.org/docs/master/configuration/index

but it's not clear to me why all options of hover (even if equals to the interaction ones) are not mentioned or at least is not mentioned that exists and you can use for a its purpose.

Furthermore it seems that hover namespace can contain another option, onHover, that's not documented even if it seems the same of options.onHover.

Your Proposal for Changes

I think it could be useful to document also hover namespace in some way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions