mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-14 14:28:14 -08:00
ebee1a5908
Tree shaking in production build of the editor-ui package removed the LineController, this makes sure it is in the final package.
29 lines
379 B
TypeScript
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,
|
|
);
|
|
},
|
|
};
|