You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Ashu2398 (via GitHub)" <gi...@apache.org> on 2023/02/14 04:54:56 UTC
[GitHub] [echarts] Ashu2398 opened a new issue, #18268: Echart lt and gte is not working properly[Bug]
Ashu2398 opened a new issue, #18268:
URL: https://github.com/apache/echarts/issues/18268
### Version
8.0.1
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1.In E-Charts use visual map
2.write lg and gte value and both values will be same
3. this is giving error
### Current Behavior
"visualMap": [
{
"top": 50,
"right": 0,
"pieces": [
{
"color": "#F44336",
"gte": 0
},
{
"color": "#43A047",
"lt": 0
},
{
"color": "#43A047",
"lt": 0
}
],
"show": false,
"outOfRange": {
"color": "#6e6e6e"
},
"seriesIndex": 0
}
]
This is giving me error.
Because of this i am not able to plot the chart
### Expected Behavior
This value should work like if greater then that value then it should give that color and for less then value it show apply that color.
### 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
[GitHub] [echarts] Ashu2398 commented on issue #18268: Echart lt and gte is not working properly[Bug]
Posted by "Ashu2398 (via GitHub)" <gi...@apache.org>.
Ashu2398 commented on issue #18268:
URL: https://github.com/apache/echarts/issues/18268#issuecomment-1431317074
For the bar chart, it's working properly. But for line chart it's not working..
option = {
yAxis: {},
xAxis: {type: 'category'},
tooltip: {},
series: [
{
type: 'line',
name: 'profit',
}
],
dataset: [
{
dimensions: ['year', 'profit'],
source: [
{
year: '2010',
'profit': 100,
},
{
year: '2011',
'profit': 200,
},
{
year: '2012',
'profit': -150,
},
{
year: '2013',
'profit': 300,
}
]
}
],
"visualMap": [
{
"top": 50,
"right": 0,
"pieces": [
{ "color": "#F44336", "gte": 0},
{ "color": "#43A047", "lt": 0 }
],
//"show": false,
"outOfRange": {
"color": "#6e6e6e"
},
//"seriesIndex": 0
}
]
};
This is the JSON I tried..
![image](https://user-images.githubusercontent.com/125260099/219031569-cc7d4f16-ac53-4255-b12d-95267c55fb0e.png)
--
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
[GitHub] [echarts] helgasoft commented on issue #18268: Echart lt and gte is not working properly[Bug]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18268:
URL: https://github.com/apache/echarts/issues/18268#issuecomment-1431784140
ok, <ins>bug confirmed</ins> with latest sample code,
visualMap produces an error for **line** series:
_"failed to run code TypeError: Cannot read properties of undefined (reading 'coord')"_
--
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] Echart lt and gte is not working properly[Bug] [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18268:
URL: https://github.com/apache/echarts/issues/18268#issuecomment-2016012791
workaround: add a small value to one of the pieces
```
pieces: [
{ color: '#F44336', gte: 0 +0.001 },
{ color: '#43A047', lt: 0 }
],
```
--
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
[GitHub] [echarts] helgasoft commented on issue #18268: Echart lt and gte is not working properly[Bug]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18268:
URL: https://github.com/apache/echarts/issues/18268#issuecomment-1430690683
cannot reproduce: [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsCeBBAHhAzgFzIC-ANGrDrgcUmBiAKbEDkAxgIZhMDmwAJwytylMMGAAbSCDqj0-JgIhMisANqV0qdLtgNmbAEacBrCnvTROAWxaxWIAcABmEMOa2wSlALoXYABNuTkUwYk09HUtAiDtofCgEiNYMJlNzBydXd1Z_LwVgAFcBdntIy20CyzTTNgAmAAYARkbPSr1HZzcPYlbGgMr5DuiOzHSBBpbm9rGs7tziJoHq9GHK0Y7ayYcm5vrZsa6c3tgAWmaAVhWx9ctNyu2p5oBmQ47jntZiF8abjp8lV8XkBsHy6AARAA3AhFTiSACynBAEIiXgesAh4hRxGug10EOUvAAFmBUbB_noISAVGV8OSKhtMewpIJyRCAMQAMQALDyXi8AGwQsiY3g8cmNUQAemlYyQzNZAnZHP5WEaPIA7CLMdJJd58VFFZI2cROWqNdrRRC9cRGt5quDLLKIfhicAAO7klzwxSGzHFMAAeRcACVONBeExyRjISyTcqzRzBUwUymIdU7ugXYplKoAJLQQJMHCSkF-FAkADcQA)
woks as expected
![image](https://user-images.githubusercontent.com/13038071/218917439-c0d31049-1ee2-423a-bacb-713c049d73c2.png)
--
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