Skip to content

Commit

Permalink
fix(editor): Make sure LineController is registered with chart.js (#7730
Browse files Browse the repository at this point in the history
)

Tree shaking in production build of the editor-ui package removed the
LineController, this makes sure it is in the final package.
  • Loading branch information
netroy committed Nov 16, 2023
1 parent 6300ee3 commit ebee1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/editor-ui/src/plugins/chartjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
PointElement,
CategoryScale,
LinearScale,
LineController,
} from 'chart.js';

export const ChartJSPlugin = {
Expand All @@ -21,6 +22,7 @@ export const ChartJSPlugin = {
Title,
Tooltip,
Legend,
LineController,
);
},
};

0 comments on commit ebee1a5

Please sign in to comment.