You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/05/02 09:26:52 UTC

[GitHub] hanfengcan opened a new issue #8262: 关于区域填充颜色的一点问题

hanfengcan opened a new issue #8262: 关于区域填充颜色的一点问题
URL: https://github.com/apache/incubator-echarts/issues/8262
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   在使用区域填充的时候,需要在 colorStops指定颜色
   
   ```js
     colorStops: [{offset: 0, color: 'rgba(128, 128, 128, 0.5)'}]
   ```
   
   如果想实现这种效果,需要知道系列的颜色
   
   
   ![_20180502171626](https://user-images.githubusercontent.com/4559753/39515567-16fa1524-4e2d-11e8-9b6e-85fb9ba96f85.png)
   
   
   有什么合适的方法实现呢.
   
   现在是使用`getModel().getSeriesByIndex(0).getData().getVisual('color')`来获取系列颜色.在把hex改成rgba的格式
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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