You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "LeSombre (via GitHub)" <gi...@apache.org> on 2026/09/25 08:32:50 UTC

Re: [I] [Bug] visualMap error [echarts]

LeSombre commented on issue #21174:
URL: https://github.com/apache/echarts/issues/21174#issuecomment-5829407244

   Hi, I don't know if it will be usefull, but for anyone is interested and do not want to use the Espilon solution like :
   ```
   "visualMap": [{
           "pieces": [{
               "gte": 900+0.001,
               "color": "green"
           },  {
               "lt": 900,
               "color": "red"
           }],
       }],
   ```
   
   We found another workaround with specify a both lt and gt values in each pieces of visualMap condition (to avoir having a gap between pieces) like that :
   ```
   "visualMap": [{
           "pieces": [{
               "gt": 900,
               "lte": Number.MAX_VALUE,
               "color": "green"
           },  {
               "gt": -Number.MAX_VALUE,
               "lte": 900,
               "color": "red"
           }],
       }],
   ```
   
   Both solutions are working and make this error disappear
   >  Cannot read properties of undefined (reading 'coord')
   
   Hope this can be helpfull (I don't know if this solution was already shared, sorry if it was the 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.

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