刘嘉威
2022-10-21 959032b71f4b4fd5e3435fcf1405f1ccaa7f8423
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// vue-echarts
import ECharts from 'vue-echarts'
import { use } from "echarts/core"
import {
    CanvasRenderer
  } from 'echarts/renderers'
  import {
    BarChart,PieChart
  } from 'echarts/charts'
  import {
    GridComponent,
    TitleComponent,
    TooltipComponent,
    LegendComponent,
  } from 'echarts/components'
 
  use([
    CanvasRenderer,
    BarChart,PieChart,
    GridComponent,
    LegendComponent,
    TooltipComponent,
    TitleComponent,
  ])
 
  export const registerEcharts= (app:any)=>{
    app.component('v-chart', ECharts)
  }