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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to