雷达图

描述:当前是关于Echarts图表中的 雷达图 示例。
 
            option = {
         backgroundColor:'#000',
          tooltip: {
            // show: false // 弹层数据去掉
          },
          legend: {
            show: false
          },
          radar: {
            center: ['50%', '50%'], // 外圆的位置
            radius: '70%',
            axisName: {
              name: {
                color: '#fff',
                fontSize: 12,
                fontWeight: 400,
              },
            },
            // TODO:
            indicator: [{
                name: '种子',
                max: 100
              },
              {
                name: '种植耗材',
                max: 100
              },
              {
                name: '农药化肥',
                max: 100
              },
              {
                name: '地膜地网',
                max: 100
              },
              {
                name: '其他',
                max: 100
              },
              {
                name: '农机农具',
                max: 100
              }
            ],
            splitArea: {
              // 坐标轴在 grid 区域中的分隔区域,默认不显示。
              show: true,
              areaStyle: {
                // 分隔区域的样式设置。
                color: ['#1c2330'] // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
              }
            },
            axisLine: {
              // 指向外圈文本的分隔线样式
              lineStyle: {
                // color: 'rgba(255,255,255,0.2)'
                color: 'rgba(255,255,255,0.7)'
              }
            },
            splitLine: {
              lineStyle: {
                type: 'solid',
                color: '#1781BA', // 分隔线颜色
                width: 1 // 分隔线线宽
              }
            }
          },
          series: [{
            type: 'radar',
            symbolSize: 5,
            symbol: "circle",
            data: [{
              // TODO:
              value: [80, 80, 80, 70, 60, 50],
              name: '库存资源',
              areaStyle: {
                color: "#39B2FF",
                opacity: 0.3
              },
              lineStyle: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                  offset: 0,
                  color: '#00A2FF'
                }, {
                  offset: 1,
                  color: '#0060FF'
                }], false),
                width: 1
              },
              color: "#81B8CC ",
              borderColor: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                offset: 0,
                color: '#00DEFF'
              }, {
                offset: 1,
                color: '#1598FF'
              }], false),
              borderWidth: 0.5,
              opacity: 1
              // itemStyle: {

              // },
            }]
          }]
        };