mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-29 13:20:49 -08:00
27 lines
343 B
TypeScript
27 lines
343 B
TypeScript
|
import {
|
||
|
Chart as ChartJS,
|
||
|
Title,
|
||
|
Tooltip,
|
||
|
Legend,
|
||
|
BarElement,
|
||
|
LineElement,
|
||
|
PointElement,
|
||
|
CategoryScale,
|
||
|
LinearScale,
|
||
|
} from 'chart.js';
|
||
|
|
||
|
export const ChartJSPlugin = {
|
||
|
install: () => {
|
||
|
ChartJS.register(
|
||
|
CategoryScale,
|
||
|
LinearScale,
|
||
|
BarElement,
|
||
|
LineElement,
|
||
|
PointElement,
|
||
|
Title,
|
||
|
Tooltip,
|
||
|
Legend,
|
||
|
);
|
||
|
},
|
||
|
};
|