Skip to content

Chart.js 3.0.0-rc.5: Plugins are not registered correctly if used for specific chart instances. #8727

@santam85

Description

@santam85

Expected Behavior

I expect to be able to specify a plugin for a specific chart instance without having to register it globally

Current Behavior

Plugin is not effective. Not all plugin lifecycle events seem to be called when adding a plugin to a specific chart instance.

Steps to Reproduce

https://codepen.io/santa-85/pen/BaQgqYe?editors=1111
To see correct behaviour, add chartjsPluginAnnotation to the Chart.register call

Environment

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