mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
60 lines
1023 B
TypeScript
60 lines
1023 B
TypeScript
import * as echarts from "echarts/core";
|
|
|
|
import {
|
|
BarChart,
|
|
LineChart,
|
|
PieChart,
|
|
MapChart,
|
|
PictorialBarChart,
|
|
RadarChart,
|
|
} from "echarts/charts";
|
|
|
|
import {
|
|
TitleComponent,
|
|
TooltipComponent,
|
|
GridComponent,
|
|
PolarComponent,
|
|
AriaComponent,
|
|
ParallelComponent,
|
|
LegendComponent,
|
|
RadarComponent,
|
|
ToolboxComponent,
|
|
DataZoomComponent,
|
|
VisualMapComponent,
|
|
TimelineComponent,
|
|
CalendarComponent,
|
|
} from "echarts/components";
|
|
|
|
import { SVGRenderer } from "echarts/renderers";
|
|
|
|
const { use, registerTheme } = echarts;
|
|
|
|
use([
|
|
LegendComponent,
|
|
TitleComponent,
|
|
TooltipComponent,
|
|
GridComponent,
|
|
PolarComponent,
|
|
AriaComponent,
|
|
ParallelComponent,
|
|
BarChart,
|
|
LineChart,
|
|
PieChart,
|
|
MapChart,
|
|
RadarChart,
|
|
SVGRenderer,
|
|
PictorialBarChart,
|
|
RadarComponent,
|
|
ToolboxComponent,
|
|
DataZoomComponent,
|
|
VisualMapComponent,
|
|
TimelineComponent,
|
|
CalendarComponent,
|
|
]);
|
|
|
|
// 自定义主题
|
|
import theme from "./theme.json";
|
|
registerTheme("ovilia-green", theme);
|
|
|
|
export default echarts;
|