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/04/01 03:01:07 UTC

[GitHub] [incubator-echarts] Torrie-Leung opened a new issue #12361: visualMap折线区间段颜色混淆

Torrie-Leung opened a new issue #12361: visualMap折线区间段颜色混淆
URL: https://github.com/apache/incubator-echarts/issues/12361
 
 
   ### Version
   4.7.0
   
   ### Steps to reproduce
   ```
   visualMap:{
             show:false,
             dimension: 1,
             pieces: [
               
               {gte:-10,lte:0,color:'#8bc34a'},
               {gt:0,lte:20,color:'#ff5722'},
               
             ]
           },
   ```
   
   ### What is expected?
   在值为大于-10小于等于0的区间,折线应该显示为绿色
   
   ### What is actually happening?
   ![mixedColor](https://user-images.githubusercontent.com/32478942/78094725-d11aa980-7407-11ea-9577-2daecad56551.png)
   
   实际上在值为0时折线颜色是红色和绿色重叠混合的色值
   使用{value: 0,color:'#8bc34a'}指定特定值的颜色也不起效
   
   <!-- 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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 100pah commented on issue #12361: visualMap折线区间段颜色混淆

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #12361: visualMap折线区间段颜色混淆
URL: https://github.com/apache/incubator-echarts/issues/12361#issuecomment-608608730
 
 
   @pissang 
   Is there any good idea for that?
   
   Do we need to provide an option that:
   enable to add a bias (depending on line width) in the dividing line position when stroking line with LinearGradient in this case?
   

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


With regards,
Apache Git Services

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


[GitHub] [echarts] dignfei commented on issue #12361: visualMap折线区间段颜色混淆

Posted by GitBox <gi...@apache.org>.
dignfei commented on issue #12361:
URL: https://github.com/apache/echarts/issues/12361#issuecomment-824752288


   > The test case for that:
   > 
   > ```js
   > option = {
   >     visualMap: {
   >         show: false,
   >         type: 'piecewise',
   >         min: -20,
   >         max: 20,
   >         pieces: [{
   >             gte: -20,
   >             lt: -10,
   >             color: 'red'
   >         }, {
   >             gte: -10,
   >             lt: 20,
   >             color: 'green'
   >         }]
   >     },
   >     tooltip: {
   >     },
   >     xAxis: {
   >         splitLine: {show: false}
   >     },
   >     yAxis: {
   >         splitLine: {show: false}
   >     },
   >     legend: {},
   >     series: [{
   >         name: 'line width: 1',
   >         type: 'line',
   >         lineStyle: {
   >             width: 1
   >         },
   >         data: [
   >             [0, -20],
   >             [1, -10],
   >             [4, -10],
   >             [5, 10]
   >         ]
   >     }, {
   >         type: 'line',
   >         name: 'line width: 5',
   >         lineStyle: {
   >             width: 5
   >         },
   >         data: [
   >             [5, -20],
   >             [6, -10],
   >             [9, -10],
   >             [10, 10]
   >         ]
   >     }]
   > }
   > ```
   
   你好,我也遇到这个问题,你解决了吗?https://github.com/apache/echarts/issues/14583


-- 
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] 100pah commented on issue #12361: visualMap折线区间段颜色混淆

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #12361: visualMap折线区间段颜色混淆
URL: https://github.com/apache/incubator-echarts/issues/12361#issuecomment-608612037
 
 
   The test case for that:
   
   ```js
   option = {
       visualMap: {
           show: false,
           type: 'piecewise',
           min: -20,
           max: 20,
           pieces: [{
               gte: -20,
               lt: -10,
               color: 'red'
           }, {
               gte: -10,
               lt: 20,
               color: 'green'
           }]
       },
       tooltip: {
       },
       xAxis: {
           splitLine: {show: false}
       },
       yAxis: {
           splitLine: {show: false}
       },
       legend: {},
       series: [{
           name: 'line width: 1',
           type: 'line',
           lineStyle: {
               width: 1
           },
           data: [
               [0, -20],
               [1, -10],
               [4, -10],
               [5, 10]
           ]
       }, {
           type: 'line',
           name: 'line width: 5',
           lineStyle: {
               width: 5
           },
           data: [
               [5, -20],
               [6, -10],
               [9, -10],
               [10, 10]
           ]
       }]
   }
   ```

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


With regards,
Apache Git Services

---------------------------------------------------------------------
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 #12361: visualMap折线区间段颜色混淆

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12361: visualMap折线区间段颜色混淆
URL: https://github.com/apache/incubator-echarts/issues/12361#issuecomment-606999702
 
 
   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


With regards,
Apache Git Services

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