Skip to content

problem migration to Chart.js 3.0 with zoom plugin #516

@sabres207

Description

@sabres207

You mention that this plugin is for Chart.js 3.0, and if using previous version of Chart.js, version 0.7.7 of this plugin should be used.
But - the latest version of this plugin IS 0.7.7.

And when I try to use this 0.7.7 latest version after migrating to Chart.js 3.0 I get the following error:
Uncaught TypeError: Cannot read property 'plugins' of undefined
Which is caused by this line:
Chart.Zoom.defaults = Chart.defaults.global.plugins.zoom...

Any helpful advice regarding migration to Chart.js 3.0 using the zoom plugin would be super appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions