import * as echarts from 'echarts/core';
import { BarChart, LineChart, PieChart, } from 'echarts/charts';
import { TitleComponent, TooltipComponent, GridComponent, 
// 数据集组件
DatasetComponent, 
// 内置数据转换器组件 (filter, sort)
TransformComponent, VisualMapComponent, DataZoomComponent, LegendComponent, } from 'echarts/components';
import { LabelLayout, UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';
// 注册必须的组件
echarts.use([
    TitleComponent,
    TooltipComponent,
    GridComponent,
    DatasetComponent,
    TransformComponent,
    BarChart,
    LineChart,
    PieChart,
    LabelLayout,
    UniversalTransition,
    CanvasRenderer,
    VisualMapComponent,
    DataZoomComponent,
    LegendComponent,
]);
