You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/10 05:25:25 UTC

[GitHub] [incubator-echarts] zhouxin860114 edited a comment on issue #11347: toolTip的formatter属性里,用function自定义时,打印出params.seriesName不能跟配置的系列名对应

zhouxin860114 edited a comment on issue #11347: toolTip的formatter属性里,用function自定义时,打印出params.seriesName不能跟配置的系列名对应
URL: https://github.com/apache/incubator-echarts/issues/11347#issuecomment-539918568
 
 
   你点下图例试试:
   
   把「分组1」隐藏,是不是都是「分组2」了?
   
   你这两个 series 是罗在一起的**两张**中国地图啊= =
    
   此外,formatter 的回调函数把 params.data.value 也显示看看,是不是都是「分组1」的数据值—— 30
   
   ————
   建议只用一个 series,把数据改成这样:
   `[{
       name: "新疆",
       group: "分组1",
       value: 30
   }, {
       name: "西藏",
       group: "分组2",
       value: 80
   }]`
   
   自定义图例实现
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org