Files
n8n-enterprise-unlocked/packages/frontend/editor-ui/src/plugins/chartjs.ts
T

29 lines
379 B
TypeScript

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,
);
},
};