The specified legend in echarts settings cannot be grayed out

   this.chartLine = echarts.init(this.$refs.chart)
   this.chartLine.on("legendselectchanged", () => {
    
    
     this.options.legend.selected["指定data"] = true;
     this.chartLine.setOption(this.options);
   });

Guess you like

Origin blog.csdn.net/qq_42611074/article/details/132068828