You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/05/18 06:28:59 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18640: [Feature] visualMap pieces 区域重叠

echarts-bot[bot] commented on issue #18640:
URL: https://github.com/apache/echarts/issues/18640#issuecomment-1552522291

   @spirit-boy-guan 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**
   
   [Feature] visualMap pieces Areas overlap
   
   **BODY**
   
   ### What problem does this feature solve?
   
   ```
   visualMap: [
     {
       pieces: [
          {gt: 100, lte: 200, color: 'red'},
         {gt: 150, lte: 300, color: 'blue'}
       ],
      }
    ]
   ```
   For line charts, when the pieces area overlaps, echarts will automatically merge the pieces, and when the pieces have different colors, the merging rules are:
   1. Complete coverage, peice with a large display area
   2. Overlay: display the previous piece first
   
   ### What does the proposed API look like?
   
   pieces: [
       {gt: 100, lte: 300, color: 'red', level: 2},
       {gt: 150, lte: 200, color: 'blue', level: 1}
   ],
   Prioritize the display of pieces with high priority (here 1)
   </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