cyang52 opened a new issue #12963:
URL: https://github.com/apache/incubator-echarts/issues/12963


   ### Version
   4.6.0
   
   ### Steps to reproduce
   根据:
   ```
   data1 = [
   [[1,2,3],'Mon'],
   [[2,3,4],'Tues'],
   [[3,4,5],'Wed']
   ]
   ```
   构造散点图。现在想使用if 判断让散点图显示同一个颜色或者根据['Mon','Tues','Wed']显示不同颜色。
   比如:
   
   ```
   var C = 1;
   var option = {
   ...
   color: C == '1' ? ['#eb8146',] : ['#d95850','#eb8146','#ffb248'],
   ....
   }
   ```
   
   但是这样做颜色并不会改变。
   
   ### What is expected?
   散点图颜色根据if判断改变
   
   ### What is actually happening?
   散点图颜色未改变
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


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



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

Reply via email to