Blame view

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

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

import { SVGRenderer } from 'echarts/renderers';

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

export default echarts;