cyang52 opened a new issue #12962:
URL: https://github.com/apache/incubator-echarts/issues/12962
根据
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',
'#f2d643','#ebdba4'],
....
}
但是这样做颜色并不会改变。
求解!
谢谢
----------------------------------------------------------------
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]