Skip to content

Commit

Permalink
Merge pull request #2369 from kirbydesign/bug/xxxx-chart-js-plugins-n…
Browse files Browse the repository at this point in the history
…ot-loading

Fix chart.js plugins imported as defaults not loading
  • Loading branch information
MadsBuchmann authored Jun 27, 2022
2 parents f4dfdc2 + 479b3e2 commit f444261
Show file tree
Hide file tree
Showing 3 changed files with 27,529 additions and 23,122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import { CHART_GLOBAL_DEFAULTS } from '../configs/global-defaults.config';
const CHART_SCALES = [CategoryScale, LinearScale, TimeScale];
const CHART_ELEMENTS = [BarElement, LineElement, PointElement];
const CHART_CONTROLLERS = [BarController, LineController];
const CHART_PLUGINS = [annotationPlugin, Filler, ChartDataLabels, Tooltip, MarkerPlugin];
const CHART_PLUGINS = [annotationPlugin, Filler, ChartDataLabels, Tooltip, MarkerPlugin].map(
(plugin: any) => (plugin?.__esModule ? plugin.default : plugin)
);

/* Order matters; defaults must be merged after register as
register modifies the Chart.defaults objects */
Expand Down
Loading

0 comments on commit f444261

Please sign in to comment.