You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/31 15:14:08 UTC

[GitHub] sxmpasch commented on issue #9315: pie用dataset设置数据,tooltip模板显示值显示为对象而不是数字

sxmpasch commented on issue #9315: pie用dataset设置数据,tooltip模板显示值显示为对象而不是数字
URL: https://github.com/apache/incubator-echarts/issues/9315#issuecomment-434726072
 
 
   It looks like the {c} reference in the formatter is referring to the whole object instead of the mapped value. In this case, it is e.g."{count:6,value: 251,name: "谷歌"}.
   
   You can see the same behaviour here: https://ecomfe.github.io/echarts-examples/public/editor.html?c=dataset-default
   if you add formatter: "{a} {b}: {c} ({d}%)"
    to the tooltip area, you get the same results (here the whole line in the underlying array is displayed...)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org