pissang commented on a change in pull request #11892: fix(pie): Process series
data-Array . close #11247
URL:
https://github.com/apache/incubator-echarts/pull/11892#discussion_r361887884
##########
File path: src/chart/pie/pieLayout.js
##########
@@ -68,7 +68,40 @@ export default function (seriesType, ecModel, api, payload)
{
!isNaN(value) && validDataCount++;
});
- var sum = data.getSum(valueDim);
+ var sum = 0;
+ var max = data._rawExtent[1];
+ var tempMax = 0;
+ var trueValueArray = [];
+ var extent = data.getDataExtent(valueDim);
+
+ if(data && data._rawData && data._rawData._data &&
data._rawData._data.length && data._rawData._data.length > 0){
Review comment:
Property with `_` prefix is private. Please do not access them outside.
----------------------------------------------------------------
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]