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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to