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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
