mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-02-24 20:20:02 -05:00
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
32 lines
686 B
TypeScript
32 lines
686 B
TypeScript
import {use} from "echarts/core";
|
|
import {BarChart, LineChart, PieChart} from "echarts/charts";
|
|
import {
|
|
DatasetComponent,
|
|
GridComponent, LegendComponent,
|
|
TitleComponent,
|
|
TooltipComponent,
|
|
TransformComponent,
|
|
ToolboxComponent
|
|
} from "echarts/components";
|
|
import {LabelLayout, UniversalTransition} from "echarts/features";
|
|
import {SVGRenderer} from "echarts/renderers";
|
|
|
|
|
|
export function registerECharts() {
|
|
use([
|
|
BarChart,
|
|
LineChart,
|
|
PieChart,
|
|
TitleComponent,
|
|
TooltipComponent,
|
|
GridComponent,
|
|
DatasetComponent,
|
|
TransformComponent,
|
|
LegendComponent,
|
|
LabelLayout,
|
|
UniversalTransition,
|
|
SVGRenderer,
|
|
ToolboxComponent
|
|
]);
|
|
}
|