echarts 设置图例文本不可点击

        legend: [
              {
                orient: "horizontal", // 'vertical'
                x: "68%", // 'center' | 'left' | {number},
                y: "top", // 'ce
                itemWidth: 0,
                itemHeight: 0,
                data: ["统计单元:"],
                selectedMode: false, //取消图例上的点击事件
                textStyle: {
                  fontSize: 12
                }
              }],
         series: [
                {
                  name: "统计单元:",
                  type: "bar"
                },
              ]
原文地址:https://www.cnblogs.com/wwj007/p/11387140.html