19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
// Copyright 2017-2023 @polkadot/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { CategoryScale, Chart, LinearScale, LineElement, PointElement, Title, Tooltip } from 'chart.js';
|
|
import annotationPlugin from 'chartjs-plugin-annotation';
|
|
import crosshairPlugin from 'chartjs-plugin-crosshair';
|
|
|
|
import Doughnut from './Doughnut.js';
|
|
import HorizBar from './HorizBar.js';
|
|
import Line from './Line.js';
|
|
|
|
Chart.register(CategoryScale, LinearScale, LineElement, PointElement, Title, Tooltip, annotationPlugin, crosshairPlugin);
|
|
|
|
export default {
|
|
Doughnut,
|
|
HorizBar,
|
|
Line
|
|
};
|