You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/07/14 00:42:47 UTC

[GitHub] [incubator-echarts] cyang52 opened a new issue #12963: 散点图颜色不改变问题

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12963: 散点图颜色不改变问题

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12963:
URL: https://github.com/apache/incubator-echarts/issues/12963#issuecomment-657901205


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] plainheart commented on issue #12963: 散点图颜色不改变问题

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #12963:
URL: https://github.com/apache/incubator-echarts/issues/12963#issuecomment-658471759


   可以考虑使用 `itemStyle` 中的 [`color`](https://echarts.apache.org/zh/option.html#series-scatter.itemStyle.color) 回调函数。


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org