susiwen8 commented on a change in pull request #10487: Label color support 
function
URL: 
https://github.com/apache/incubator-echarts/pull/10487#discussion_r288097693
 
 

 ##########
 File path: src/util/graphic.js
 ##########
 @@ -653,6 +653,10 @@ export function setLabelStyle(
         setTextStyle(emphasisStyle, emphasisModel, emphasisSpecified, opt, 
true);
     }
 
+    if (typeof normalModel.get('color') === 'function') {
+        normalStyle.textFill = normalModel.get('color')(labelDataIndex);
+    }
+
 
 Review comment:
   Wow, so much thing I didn't think about, I will look into it

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