You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "drush (via GitHub)" <gi...@apache.org> on 2024/11/15 19:32:51 UTC
[I] [Bug] encode y: [a,b] does not behave as expected [echarts]
drush opened a new issue, #20521:
URL: https://github.com/apache/echarts/issues/20521
### Version
5.5.1
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=bar-waterfall2&code=CYQwLiAEC8kNoChLwOQCYAMaAsBaAjPrhvigDSQCsGFmNk-1AumUqpjgUVuQ_vQGYM9fAA4MLNnHRY8hYgN75MtFQwDsE1smkc53bEqG1jDcZJ0zO8jJSXZ6OEQE4JCJgG4ECAPYAHMABLHwA7GEgAbzZQCABnAFMwAC5ItmRYnwBXACcAY3iUmJA2AF9tSAAPAEEKwNiUiMgwAE8_AsgUXPB4gHMfbOaUSDK2Zpq6hqbW9pQANxAAG0z4oZH0-OzA-Pr4NMjIEJAAWxmq2Y2QHpWKFraUlAXAkOvIeJDcn2B2xoqU-maUgJhsMKAB6UGQACqCUgTy-FUgGEgADN-pVIAAKIInWIQI5-ACUkBAIWAsNJ8QRQNR2UgzUxIFmPQJeyiyHZUzuHUez3Ie2Qbw-X0mv0RFAB8HwtCYIMg4MgAAUFj4wJAjk9cEcQAjsiSrsTYsTsvFihzkIcTvcALIaq3ayAAJT1135RpNAGUWgtvpB_CBcoEWn8AHRoSiy-UAUUOACNvW6oMjAgsFq6efFPc1vZM_QGg4iIxCABKBL5NAAW8Ug6dhYASC2RrtizSOMZ8C3uIVCKz2JTYTAQJQ8QA
### Steps to Reproduce
1. E has [timestamp, min, max and avg]
2. Plot avg as line (this works)
3. Plot min, max as area 'range' that should be plotted to 'float' above the x-axis
### Current Behavior
`encode: { y: [min, max] }` anchors to y=0, is the x-axis rather than floating above.
### Expected Behavior
the area should be plotted in the range from min to max, rather than from o to min.
### Environment
```markdown
- OS: any
- Browser: chrome
- Framework: NA
```
### 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] encode y: [a,b] does not behave as expected [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20521:
URL: https://github.com/apache/echarts/issues/20521#issuecomment-2479916352
not-a-bug, here is one way of displaying a confidence band - [Demo](https://echarts.apache.org/examples/en/editor.html?c=bar-waterfall2&code=CYQwLiAEC8kNoChLwOQCYAMaAsBaAjPrhvigDSQCsGFmNk-1AumUqpjgUVuQ_vQGYM9fAA4MLNnHRY8hYgN75MtFQwDsE1smkc53bEqG1jDcZJ0zO8jJSXZ6OEQE4JCJgG4ECAPYAHMABLHwA7GEgAbzZQCABnAFMwAC5ItmRYnwBXACcAY3iUmJA2AF8KNgAbeIBzeJDgJIiytgAPAEEWwNiUiMgwAE8_AsgUXPAan2z-lEhm5H6Orp7Z7UgE7MD47vg0yMgQkABbYZQ2gDd47JBa3gGhlJQKwJD43jrcn2Bh3paU-n6UgJZitIAB6UGQACqCUgzy-LUgGEgADNJpAEQAKILHWIQQ5-ACUkBA9Vh9XiCKBqOykH6kAxIDO1QJuyiyHZfUGJyeL3Iu2Q70-33RfwoAMgaBB4MgAAUKj4wJBDs9cIcQAiriFasTYsTsvFihzkAdjg8ALIqs3qyAAJRJN1WHJA-pAAGUBlVlv4QLlAgM_gA6ShSiEAUQOACMqnqDSjAhUKvzIDz4u7-p69t7ff7ESHIAAJQJfPoAC3iyee5b9CQqyKTsX6hwjPgqDxCoVeuzm7LZRru3MrfKNkEFX2Wv0RYpS-BBSZNJwtIVwVoRdq1r0d7OdBrTGd6H3l2SSKAA7iW_a8VkmU7vhVm_eKkd2OQ2my22x2UF22EwECUPEAA)
--
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] encode y: [a,b] does not behave as expected [echarts]
Posted by "drush (via GitHub)" <gi...@apache.org>.
drush commented on issue #20521:
URL: https://github.com/apache/echarts/issues/20521#issuecomment-2479781403

--
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] encode y: [a,b] does not behave as expected [echarts]
Posted by "drush (via GitHub)" <gi...@apache.org>.
drush commented on issue #20521:
URL: https://github.com/apache/echarts/issues/20521#issuecomment-2479937984
@helgasoft I appreciate your proposed workaround, but it is not a complete solution and I still believe this is a bug for these reasons:
- Your approach essentially 'paints over' the bottom portion which may get close to the visual effect desried, but also changes the semantics of the chart itself.
- This approach does not allow for multiple series to be plotted. The 'paint over' area would overlap all series.
- The docs allow for `y: [a,b]` as an exceptable syntax. If the `y` param cannot in fact handle or do anything with an array, then it should throw an error in this case.
An ideal solution may allow you to specify the line and area in a single series configuration, as opposed to the 2 above, for example. :
```
option = {
dataset: {
source: data
},
xAxis: { type: 'category' },
yAxis: { type: 'value' },
series: [
{
type: 'line',
encode: { x: 0, y: [3, 1, 2] }, // specify line first, then upper, lower bounds of area
name: 'Min-Max Range',
areaStyle: { opacity: 0.25 }, // Enable area fill
lineStyle: { opacity: 1 }, // show the avg line
symbol: 'none'
}
]
};
```
The best alternative we've been able to utilize thus far is plotting data points as a scatter and then showing the average through line as 2 series. This is not our preferred format however, 'confidence bands' would be better.
--
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] encode y: [a,b] does not behave as expected [echarts]
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #20521:
URL: https://github.com/apache/echarts/issues/20521#issuecomment-2482185231
You may need to wait until v6.0 releases so that you can use the new [lineRange](https://github.com/apache/echarts-custom-series/tree/main/custom-series/lineRange) custom series. It's expected to be released around Feb 2025. Before that, you can refer to [its source code](https://github.com/apache/echarts-custom-series/blob/main/custom-series/lineRange/src/index.ts) to write your own custom series if you wish.
--
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