import * as echarts from "echarts";

const getBarChart = (nameList, valueList, isPer) => {
  const option = {
    title: { text: '' },


    radar: {
      radius: '50%',          // 关键：缩小整个雷达
      center: ['50%', '50%'], // 可选：再往下挪一点，避免图例挤在一起
      indicator: [
        { name: '5G通信', max: 6500 },
        { name: '生物科技', max: 16000 },
        { name: '人工智能', max: 30000 },
        { name: '物联网', max: 38000 },
        { name: '量子科技', max: 52000 },
        { name: '智能汽车', max: 25000 }
      ],
      axisName: {
        formatter: '{value}',
        color: 'rgba(59, 65, 75, 1)',
        fontSize: 14,
        fontWeight: 400
      }
    },
    series: [
      {
        name: 'Budget vs spending',
        type: 'radar',
        symbol: 'none',
        // 添加或修改 lineStyle 属性来控制线条粗细
        lineStyle: {
          width: 1, // 调整这个值可以改变线条的粗细，数值越大线条越粗
          color: '#69B1FF'
        },
        data: [
          {
            value: [4200, 3000, 20000, 35000, 50000, 18000],
            name: '美国',
            areaStyle: { color: 'rgba(105, 177, 255, 0.1)' }
          },

        ]
      }
    ]
  }
  return option
}

export default getBarChart