n8n/packages/editor-ui/src/plugins/chartjs.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
379 B
TypeScript
Raw Normal View History

import {
Chart as ChartJS,
Title,
Tooltip,
Legend,
BarElement,
LineElement,
PointElement,
CategoryScale,
LinearScale,
LineController,
} from 'chart.js';
export const ChartJSPlugin = {
install: () => {
ChartJS.register(
CategoryScale,
LinearScale,
BarElement,
LineElement,
PointElement,
Title,
Tooltip,
Legend,
LineController,
);
},
};