SOURCE

import * as echarts from "echarts/core";
import { BarChart, LineChart, PieChart, GaugeChart, FunnelChart, MapChart, ScatterChart, RadarChart } from "echarts/charts";
import {
  TooltipComponent,
  GridComponent,
  MarkAreaComponent,
  MarkLineComponent,
  MarkPointComponent,
  DataZoomComponent,
  DataZoomInsideComponent,
  DataZoomSliderComponent,
  GraphicComponent,
  AxisPointerComponent,
  LegendComponent,
  PolarComponent,
  RadarComponent,
  GeoComponent
} from "echarts/components";
import { LabelLayout, } from "echarts/features";
import { CanvasRenderer } from "echarts/renderers";

echarts.use([
  TooltipComponent,
  GridComponent,
  MarkAreaComponent,
  MarkLineComponent,
  MarkPointComponent,
  DataZoomComponent,
  DataZoomInsideComponent,
  DataZoomSliderComponent,
  GraphicComponent,
  LegendComponent,
  RadarComponent,
  GeoComponent,
  AxisPointerComponent,
  PolarComponent,
  LabelLayout,
  CanvasRenderer,
  BarChart,
  LineChart,
  PieChart,
  FunnelChart,
  ScatterChart,
  RadarChart,
  MapChart,
  GaugeChart
]);

export default echarts;
console 命令行工具 X clear

                    
>
console