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

echarts.use([...commonEchartsComponents, RadarChart]);
const radarOption = (props) => {
    const { shape = 'polygon', indicator, data } = props;
    return {
        radar: { shape, indicator },
        series: data ? [{ type: 'radar', data }] : undefined,
    };
};
var radar = defineComponent(echarts, 'radar', radarOption);

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