You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "CaptainJon (via GitHub)" <gi...@apache.org> on 2025/08/07 03:51:40 UTC
[I] [Bug] visualMap error [echarts]
CaptainJon opened a new issue, #21174:
URL: https://github.com/apache/echarts/issues/21174
### Version
5.6.0
### Link to Minimal Reproduction
no for now
### Steps to Reproduce
if i set visualMap as follows, everything is fine:
` visualMap: [
{
type: 'piecewise',
show: true,
dimension: 1,
pieces: [
{
lte: 100,
color: 'green'
},
{
gt: 100,
lte: 200,
color: 'red'
},
{
gt: 200,
lte: 300,
color: 'green'
},
{
gt: 300,
lte: 400,
color: 'red'
},
{
gt: 400,
color: '#f00'
}
]
}
],`
but if i change it as follows, something went wrong: Cannot read properties of undefined (reading 'coord')
` visualMap: [
{
type: 'piecewise',
show: true,
dimension: 1,
pieces: [
{
lte: 400,
color: 'green'
},
{
gt: 400,
color: '#f00'
}
]
}
],`
### Current Behavior
should work
### Expected Behavior
should work
### 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
Re: [I] [Bug] visualMap error [echarts]
Posted by "LeSombre (via GitHub)" <gi...@apache.org>.
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
Re: [I] [Bug] visualMap error [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #21174:
URL: https://github.com/apache/echarts/issues/21174#issuecomment-3193836193
duplicate of #18268
--
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