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 2019/04/30 13:39:48 UTC
[GitHub] [incubator-echarts] yufeng04 commented on issue #10380: 使用dataset时 饼图formatter: "{a}
{b} : {c} ({d}%)"}异常显示{c}为[object Object]
yufeng04 commented on issue #10380: 使用dataset时 饼图formatter: "{a} <br/>{b} : {c} ({d}%)"}异常显示{c}为[object Object]
URL: https://github.com/apache/incubator-echarts/issues/10380#issuecomment-487956050
I found the reason lies in the [sourceType](https://github.com/apache/incubator-echarts/blob/master/src/data/helper/dataProvider.js#L213)
I tried to fix it like this,
objectRows: function (dataItem, dataIndex, dimIndex, dimName) {
var value = isObject(dataItem) ? getDataItemValue(dataItem) : dataItem;
return dimIndex != null ? dataItem[dimName] : value;
}
Hope it helps!
----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org