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/25 02:05:29 UTC

[GitHub] Mignon-han opened a new issue #8400: mark area 文本透明度问题

Mignon-han opened a new issue #8400: mark area 文本透明度问题
URL: https://github.com/apache/incubator-echarts/issues/8400
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   第一个问题:
   为`mark area` 设置透明度,`mark area label`的透明度也会跟着改变。
   为`mark area` 设置透明度可能是为了突出图表, 但是`labe`l也跟着变透明,会让用户不知道(很难看清) label的文本。
   第二个问题:
   感觉我们的`mark area` 现在很不好用,比如:
   1.默认 `mark area` 是处于图表下方,但是`mark area`的`label`文本也处于下面,极有可能Label被遮住。
   2. 基于以上问题,我们可以把`label`的`position`设置成`right`, 但是label的文本可长可短,这就需要我们根据label的长度动态的设置`grid.right`的大小(否则文本可能被截断),但是这个又很难计算准确。
   3. 这个是有issue的,就是现在依然不能控住 `mark area` 的z值
   4. `mark line` 存在相似的问题
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: v4.1.0.rc2
   + Browser version [浏览器类型和版本]:Chrome  66.0.3359.181
   + OS Version [操作系统类型和版本]:win 10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   `mark area label`的透明度不随着mark area 本身的透明度改变
   优化 `mark` 系列的体验
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       xAxis: {
           data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
       },
       yAxis: {},
       series: [{
           type: 'line',
           data: [220, 182, 191, 234, 290, 330, 310],
           "markArea": {
               "silent": true,
               "data": [
                   [{
                       "yAxis": 50,
                       name: 'This is a mark area',
                       "label": {
                           "show": true,
                           "position": "insideRight",
                           "color": "#000000",
                       },
                       "itemStyle": {
                           "color": "#68d2e0",
                           "opacity": 0.5
                       }
                   }, {
                       "yAxis": 200
                   }]
               ]
           }
       }]
   };
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   http://gallery.echartsjs.com/editor.html?c=xrywL2kHJ7&v=1
   
   

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