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

echarts.use([...commonEchartsComponents, PieChart]);
const pieOption = (props) => {
    const { radius, data } = props;
    return {
        series: data ? [{ type: 'pie', radius, data }] : undefined,
    };
};
var pie = defineComponent(echarts, 'pie', pieOption);

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