渐变 legend

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            let option = {
        backgroundColor: '#031d33',
        tooltip: {
          show: true,
          trigger: "axis", //axis , item
          backgroundColor: "RGBA(0, 49, 85, 1)",
          borderColor: "rgba(0, 151, 251, 1)",
          borderWidth: 1,
          borderRadius: 0,
          textStyle: {
            color: "#BCE9FC",
            fontSize: 16,
            align: "left"
          }
        },
        grid: {
          right: "5%",
          top: "20%",
          left: "5%",
          bottom: "5%",
          containLabel: true
        },
        xAxis: {
          type: "category",
          boundaryGap: true,
          data: ["百可社区", "枣园社区", '蒋家桥社区', '天宁寺社区', '文昌社区', '南门社区'],
          axisLabel: {
            //坐标轴刻度标签的相关设置。
            interval: 0, //设置为 1,表示『隔一个标签显示一个标签』
            //	margin:15,
            textStyle: {
              color: "#A8B1AF",
              fontStyle: "normal",
              fontSize: 12
            }
          },
          axisTick: {
            //坐标轴刻度相关设置。
            show: false,
          },
          axisLine: {
            //坐标轴轴线相关设置
            lineStyle: {
              color: "#3C9AEA"
            }
          },
          splitLine: {
            //坐标轴在 grid 区域中的分隔线。
            show: false,
          }
        },
        yAxis: [
          {
            name: '单位(次)',
            nameTextStyle: {
              color: "white",
              padding: [20, 20, 20, 0]
            },
            type: "value",
            splitNumber: 3,
            axisLabel: {
              textStyle: {
                color: "#A8B1AF",
                fontStyle: "normal",
                fontSize: 12
              }
            },
            axisLine: {
              show: false
            },
            axisTick: {
              show: false
            },
            splitLine: {
              show: true,
              lineStyle: {
                color: "rgba(60, 154, 234, 0.2)"
              }
            }
          }
        ],
        series: [
          {
            name: '正常',
            type: "pictorialBar",
            // barWidth: "120%",
            barCategoryGap: "12%",
            stack: "数量",
            label: {
              normal: {
                show: true,
                position: "top",
                textStyle: {
                  color: "#FFFFFF",
                  fontSize: 12
                }
              }
            },
            itemStyle: {
              normal: {
                color: {
                  type: "linear",
                  x: 0,
                  y: 0,
                  x2: 0,
                  y2: 1,
                  colorStops: [
                    {
                      offset: 0,
                      color: "rgba(60, 154, 234, 1)"  // 0% 处的颜色
                    },
                    {
                      offset: 0.8,
                      color: "rgba(60, 154, 234, 0.1)" // 100% 处的颜色
                    }
                  ],
                  globalCoord: false // 缺省为 false
                } //渐变颜色
              }
            },
            symbol:
              "path://M12.000,-0.000 C12.000,-0.000 16.074,60.121 22.731,60.121 C26.173,60.121 -3.234,60.121 0.511,60.121 C7.072,60.121 12.000,-0.000 12.000,-0.000 Z",

            data: [23, 84, 101, 74, 87, 45, 22]
          }],
      };