import { ScatterChart } from 'echarts/charts';
import { GridComponent } from 'echarts/components';
import * as echarts from 'echarts/core';
import { commonEchartsComponents, defineComponent } from '../utils/comp-factory.js';

echarts.use([...commonEchartsComponents, GridComponent, ScatterChart]);
const scatterOption = (props) => {
    const { data } = props;
    return {
        // 声明一个 X 轴，类目轴（category）。默认情况下，类目轴对应到 dataset 第一列。
        xAxis: { type: 'category' },
        // 声明一个 Y 轴，数值轴。
        yAxis: {},
        series: data ? [{ type: 'scatter', data }] : undefined,
    };
};
var scatter = defineComponent(echarts, 'scatter', scatterOption);

export { scatter as default };
//# sourceMappingURL=scatter.js.map
