如何通过两个刻度隐藏标签?图表

问题描述

我们如何自定义标签并将其隐藏 2 个刻度/行(请参阅下面的预期输出)?我已经尝试了下面的代码,但它什么也没做。有没有机会专门隐藏一下?

legend: {
   labels: {
      filter: function(label) {
         if (label.text === '10' || label.text === 10) return false;
      }
   }
},

这是我的工作代码,如 click link here


电流输出

enter image description here

预期产出

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)