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