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 2022/09/14 06:56:53 UTC

[GitHub] [echarts] luolongsen opened a new issue, #17648: [Bug]

luolongsen opened a new issue, #17648:
URL: https://github.com/apache/echarts/issues/17648

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   折线图通过设置配置visualMap属性配置阈值颜色变化,但当有两个连续的拐点值,比如下文12,会出现一条平行线,有两种颜色
   visualMap: {
       show: true,
       type:'piecewise',
       top: '13%',
       right: '2%',
       orient: 'horizontal',
       pieces: [
         { gt: -4, lte: 0, color: '#7088ff' },
         { gt: 0, lte: 4, color: '#75cfff' },
         { gt: 4, lte: 8, color: '#ffc619' },
         { gt: 8, lt: 12, color: '#ff8766' },
         { gt: 12, lte: 16, color: '#483D8B' }
       ],
       outOfRange: { color: '#999' }
     },
   ![image](https://user-images.githubusercontent.com/48511040/190082475-37da210e-8c75-4f4a-bac4-ce63842aa29f.png)
   
   
   ### Current Behavior
   
   折线图通过设置配置visualMap属性配置阈值颜色变化,但当有两个连续的拐点值,比如下文12,会出现一条平行线,有两种颜色
   visualMap: {
       show: true,
       type:'piecewise',
       top: '13%',
       right: '2%',
       orient: 'horizontal',
       pieces: [
         { gt: -4, lte: 0, color: '#7088ff' },
         { gt: 0, lte: 4, color: '#75cfff' },
         { gt: 4, lte: 8, color: '#ffc619' },
         { gt: 8, lt: 12, color: '#ff8766' },
         { gt: 12, lte: 16, color: '#483D8B' }
       ],
       outOfRange: { color: '#999' }
     },
   
   ### Expected Behavior
   
   预期折线图颜色显示应该和配置保持一致,小于等于拐点一种颜色,大于拐点另一种颜色
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

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] [echarts] echarts-bot[bot] commented on issue #17648: [Bug] visualMap实现折线颜色渐变渲染问题

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

   @luolongsen It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] VisualMap implements polyline color gradient rendering issues
   
   **BODY**
   
   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   The line chart configures the threshold color change by setting the visualMap property, but when there are two consecutive inflection point values, such as 12 below, a parallel line will appear with two colors
   visualMap: {
       show: true,
       type:'piecewise',
       top: '13%',
       right: '2%',
       orient: 'horizontal',
       pieces: [
         { gt: -4, lte: 0, color: '#7088ff' },
         { gt: 0, lte: 4, color: '#75cfff' },
         { gt: 4, lte: 8, color: '#ffc619' },
         { gt: 8, lt: 12, color: '#ff8766' },
         { gt: 12, lte: 16, color: '#483D8B' }
       ],
       outOfRange: { color: '#999' }
     },
   ![image](https://user-images.githubusercontent.com/48511040/190082475-37da210e-8c75-4f4a-bac4-ce63842aa29f.png)
   
   
   ### Current Behavior
   
   The line chart configures the threshold color change by setting the visualMap property, but when there are two consecutive inflection point values, such as 12 below, a parallel line will appear with two colors
   visualMap: {
       show: true,
       type:'piecewise',
       top: '13%',
       right: '2%',
       orient: 'horizontal',
       pieces: [
         { gt: -4, lte: 0, color: '#7088ff' },
         { gt: 0, lte: 4, color: '#75cfff' },
         { gt: 4, lte: 8, color: '#ffc619' },
         { gt: 8, lt: 12, color: '#ff8766' },
         { gt: 12, lte: 16, color: '#483D8B' }
       ],
       outOfRange: { color: '#999' }
     },
   
   ### Expected Behavior
   
   It is expected that the color display of the line chart should be consistent with the configuration, one color less than or equal to the inflection point, and another color greater than the inflection point
   
   ### Environment
   
   ````markdown
   - OS:
   - Browser:
   - Framework:
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </details>


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] [echarts] echarts-bot[bot] closed issue #17648: [Bug] visualMap实现折线颜色渐变渲染问题

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #17648: [Bug] visualMap实现折线颜色渐变渲染问题
URL: https://github.com/apache/echarts/issues/17648


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] [echarts] Ovilia commented on issue #17648: [Bug] visualMap实现折线颜色渐变渲染问题

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

   Please follow #17138


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] [echarts] ye-congwang commented on issue #17648: [Bug] visualMap实现折线颜色渐变渲染问题

Posted by GitBox <gi...@apache.org>.
ye-congwang commented on issue #17648:
URL: https://github.com/apache/echarts/issues/17648#issuecomment-1286509912

   我5.2.1的版本也有这个问题,本来点和线应该是绿色的,好像是pieces里面不能同时存在正负值,不知道咋解决
   ![image](https://user-images.githubusercontent.com/57819934/197125982-ba4e7803-6f67-417a-adbb-bf3e9a723ede.png)
   


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] [echarts] echarts-bot[bot] commented on issue #17648: [Bug]

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

   I'm sorry to close this issue for it lacks the necessary title. Please provide **a _descriptive_ and as _concise_ as possible title to describe your problems or requests** and then the maintainers or I will reopen this issue.
   
   Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.
   
   A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.
   
   Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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] [echarts] echarts-bot[bot] closed issue #17648: [Bug]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #17648: [Bug] 
URL: https://github.com/apache/echarts/issues/17648


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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