Skip to content

Commit

Permalink
Apply fix for compatibility with chart.js 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
efokschaner authored Sep 17, 2021
1 parent d96a018 commit a5bafbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin.colorschemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,6 @@ var ColorSchemesPlugin = {
}
};

Chart.plugins.register(ColorSchemesPlugin);
(Chart.plugins || Chart).register(ColorSchemesPlugin);

export default ColorSchemesPlugin;

0 comments on commit a5bafbd

Please sign in to comment.