Blame view

src/utils/lib/echarts.ts 970 Bytes
vben authored
1
2
import * as echarts from 'echarts/core';
Vben authored
3
4
5
6
7
8
9
import {
  BarChart,
  LineChart,
  PieChart,
  MapChart,
  PictorialBarChart,
  RadarChart,
10
  ScatterChart,
Vben authored
11
} from 'echarts/charts';
vben authored
12
13
14
15
16
17
18
19

import {
  TitleComponent,
  TooltipComponent,
  GridComponent,
  PolarComponent,
  AriaComponent,
  ParallelComponent,
Vben authored
20
  LegendComponent,
Vben authored
21
  RadarComponent,
22
23
24
25
26
  ToolboxComponent,
  DataZoomComponent,
  VisualMapComponent,
  TimelineComponent,
  CalendarComponent,
27
  GraphicComponent,
vben authored
28
29
30
31
32
} from 'echarts/components';

import { SVGRenderer } from 'echarts/renderers';

echarts.use([
Vben authored
33
  LegendComponent,
vben authored
34
35
36
37
38
39
40
41
42
43
  TitleComponent,
  TooltipComponent,
  GridComponent,
  PolarComponent,
  AriaComponent,
  ParallelComponent,
  BarChart,
  LineChart,
  PieChart,
  MapChart,
Vben authored
44
  RadarChart,
vben authored
45
46
  SVGRenderer,
  PictorialBarChart,
Vben authored
47
  RadarComponent,
48
49
50
51
52
  ToolboxComponent,
  DataZoomComponent,
  VisualMapComponent,
  TimelineComponent,
  CalendarComponent,
53
  GraphicComponent,
54
  ScatterChart,
vben authored
55
56
57
]);

export default echarts;