Echarts line chart gradient, legend does not gradient, how to achieve

      this.echarts1_option.option.series.push({
        name: this.cclass[index],
        data: element,
        type: "line",
        areaStyle: {},
        itemStyle: {
          normal: {
            lineStyle: {
              color: color[index],
            },
            color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
              { offset: 0, color: color[index] },
              { offset: 1, color: "-sharpfff" },
            ]),
          },
        },
      });
Jun.27,2022

ask, has the problem been solved

Menu