valor-software/ng2-charts

The plugin chartjs-plugin-zoom doesn't wotk anymore with 6.0.0

Closed this issue · 1 comments

The pan/zoom plugin worked fine with <=5.X, but not anymore.

I tried to add it to the providers, but no success.

import { default as ZoomPlugin } from 'chartjs-plugin-zoom';

provideCharts({ registerables: [BarController, Legend, Colors, ZoomPlugin] });

providers: [
provideCharts(withDefaultRegisterables())
]

Solved, It needed the native method.

Chart.register(ZoomPlugin);