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_r360714330
 
 

 ##########
 File path: src/chart/pie/PieSeries.js
 ##########
 @@ -45,6 +48,28 @@ var PieSeries = echarts.extendSeriesModel({
         this._defaultLabelLine(option);
     },
 
+    processOptionSeriesValue: function (option) {
+        var data = option.data;
+
+        for(var i = 0; i < data.length; i++){
+            if(data[i].value instanceof Array){
+                //visualMap component fix me
+                // if(data[i].value[0] instanceof Array){
+                //     if(option.visualMap && option.visualMap instanceof 
Array){
+                //         for(var j = 0; j < option.visualMap.length; j++){
+                //             option.visualMap[j]['value'] = 
data[i].value[j][1]; //set second number to visualMap...
+                //         }
+                //     }
+                // }
+                data[i].value = data[i].value.reduce(function(a, b) {
 
 Review comment:
   Please do not use `reduce` function. It's not compatitable in IE8

----------------------------------------------------------------
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