echarts实现自定义雷达图

该文章展示了如何使用ECharts创建一个雷达图,详细配置了包括触发提示、图例位置、雷达图形状、轴线颜色、区域样式、网格颜色以及数据系列的颜色等。雷达图的指标包括适应能力、语言、精细动作、思维逻辑和大运动,数据值分别为100、80、50、80和60。
摘要由CSDN通过智能技术生成

在这里插入图片描述
option

option1 = {
  tooltip: {
    trigger: 'axis'
  },
  legend: {
    left: 'center'
  },
  radar: [
    {
      indicator: [
        { text: '适应能力', max: 100 },
        { text: '语言', max: 100 },
        { text: '精细动作', max: 100 },
        { text: '思维逻辑', max: 100 },
        { text: '大运动', max: 100 }
      ],
      radius: 50,
      center: ['50%', '50%'],
      axisLine: {
        lineStyle: {
          color: "#2565d6",
        },
      },
      name: {
        textStyle: {
          color: "#AADDFF"
        },
      },
      splitArea: {
        show: false,
        areaStyle: {
          color: "#2565d6", // 图表背景的颜色
        },
      },
      splitLine: {
        lineStyle: {
          width: 2,
          color: "#2565d6", // 设置网格的颜色
        },
      },
    }
  ],
  series: [
    {
      type: 'radar',
      tooltip: {
        trigger: 'item'
      },
      areaStyle: {
        color: ['#4391cc']
      },
      lineStyle: {
        color: ['#00CBF6']
      },
      data: [
        {
          value: [100, 80, 50, 80, 60],
          itemStyle: {
            normal: {
              color: '#70eefc',

            },
          },
        }
      ]
    },
  ]
};
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值