You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "vincesp (via GitHub)" <gi...@apache.org> on 2023/12/13 17:57:05 UTC
[I] [Bug] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
vincesp opened a new issue, #19400:
URL: https://github.com/apache/echarts/issues/19400
### Version
5.4.3
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=MYewdgzgLgBAJgQygmBeGYCmB3GAxAGxCQGYAmAQQCcqEBPACgG0AoGGARgBoYSeyAdAA4eABgF8YZfgICsM6THHzeMgOwyAbCvEcWAXQCUAbhahIsOAEsAtpkhXwENDCYByAB5uebgG7eYNwIAtwBXN31TFhAAByhHMBcAbzYYKBAQAniYgC4YFPZ2KCorAHNSzCo8tysoTBtvVPYEDysIAAUQKzA6qvymwqg6GMxq4CoQCAhGwsKEMFskBLyAMwQCCEwBgF9U7a5UjwpWiDyCweHRwN910MwZwohgdaviu72D9jpjtrOBoZG1RuBDubg-qU2JUwp1cA3OswBVyC3Xun1mMHsoDgVySMA81S8PDo1WCMH2A3YiGQaNm1jsDicNMKBBRAGUhgQcRTCrEEMBasTONzyeiYNA-QBrMbgFZWbFgYCYAC0ACN5nAHrMIHQbCrMtUwOB7jsmfCLoDAiysJrCpiQNizniCQFBWE3GSmZSkAhPfBbPYIAkIL6rZh2XROX9Rexefyhnk9KKRejxcApYFzLL5YrVerGtyEFRMAhw5H-tGYKAiH03ABiYANsFJk1w7mIkkom3sO0O_JOwKEmCu_we7lUn1j_0MyA7VL6FjbYxAA
### Steps to Reproduce
- Create a line chart with stacked lines
- Set both axes to `type: 'value'`
- Fill the area between two lines of the stack
### Current Behavior
The stacked line gets stacked on the values of the x-axis.
<img width="934" alt="Screenshot 2023-12-13 183747" src="https://github.com/apache/echarts/assets/2853797/755ab9e6-3b66-4487-94fd-5f5e57bde0a2">
### Expected Behavior
The stacked line gets stacked on the values of the y-axis, the same behavior as if the x-axis was of type 'category'.
<img width="950" alt="Screenshot 2023-12-13 183816" src="https://github.com/apache/echarts/assets/2853797/592ad026-a966-495f-a079-2b2c2c04b65c">
### Environment
```markdown
- OS: Windows 10 Enterprise
- Browser: Chrome 120.0.6099.71
- Framework: None
```
### Any additional comments?
Or are there other options for filling arbitrary areas between two lines, or between one line and one particular axis?
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "vincesp (via GitHub)" <gi...@apache.org>.
vincesp commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-1860352883
I was now able to achieve what I wanted by creating a [custom renderer](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=MYewdgzgLgBAJgQygmBeGYCmB3GAxAGxCQGYAmAQQCcqEBPACgG0AoGGARgBoYSeyAdAA4eJAdxhl-AgKzSpkgQHZR0lYoBscxUpksAugEoA3C1CRYcAJYBbTJCvgIaGEwDkADzc83AN28wbgQBbgCubvqm5tAYAAogVmBQzuiIyAIE9gDmUAAWMAD0MAAspiwgAA5QjmAuAN5sMFAgIATVFQBcMA3s7FBUVllZmFRdblZQmDbejewIHlYQ8YmTo92zvVB0FZhjwFQgEBAzvb0IYLZINV0AZggEEJgbAL6Nz1yNHhQLEF09m9tdoFfPdQpgTr0IMB7kD-mC3h92HRvos_hstjsxiCCGC3AjGo8Bphfq4Nv9ThigUFEuDEacYPZQHAgXUYB4xl4eHQsW4YO8Nuw0gg6adrHYHE4XiL1vSmoC9qFoCBptL2FR7MyqABJSY2BgVBC0GwQHgICpWQwy2UwKw3GD6w0IY0CcyTDxQATqsCazBwS3k63qqChKhgUzWvkC3oGo0QF3gN0er0-uAuOGYcPW6KwCoJJIpDA4GDUWiMMDLfMwABUkhMUfYNxAVHtmVgVhcAAZjDaYAAeOJ55LdgDUw4tVojuZWECYVn0LjNVnjTbgzCFs-rJX0PHX7ZrxRgw8k-iMmcng5n5Yvm7IMAAtJx7zb5-hF8uqKvWBHRUgEBv99u9b0rum4HkeJD6EB7CnkBrwRq2MCgEQzavuaAi-IsoT3AwbhIU2bh1hGQYhrUAaypSYy5gQdBZOAEIRv05wQBM1yuG4EC5Ga4KAd-MAcVxfwwFOlb8rx0B0JkXRvuJmQMGR1o3FYBAEGMADEHYafR36VAgwAT
NyMAduIUF8oYsFnr0on0sABBWJ0TRUGCqrwL-LyNJBzzGEAA).
Yet, I ask myself:
- Why can echarts not support such a behavior out of the box?
- What is the underlying requirement description that led to the implementation which results in the behavior depicted under "Current Behavior" above? Which use case does that solve?
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "vincesp (via GitHub)" <gi...@apache.org>.
vincesp commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-1854462961
Swapping the x and y axis also does not fix this odd behavior. Still, the wrong axis is used for stacking:
https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=MYewdgzgLgBAJgQygmBeGYCmB3GAxAGxCQGYAmAQQCcqEBPACgG0AoGGARgBoYSeyAdAA4eABgF8YZfgICsM6THHzeMgOwyAbCvEcWAXQCUAbhahIsOAEsAtpkhXwENDCYByAB5uebgG7eYNwIAtwBXN31TFhAAByhHMBcAbzYYKBAQAniYgC4YFPZ2KCorAHNSzCo8tysoTBtvVPYEDysIAAUQKzA6qvymwqg6GMxq4CoQCAhGwsKEMFskBLyAMwQCCEwBgF9U7a5UjwpWiDyCweHRwN910MwZwohgdaviu72D9jpjtrOBoZG1RuBDubg-qU2JUwp1cA3OswBVyC3Xun1mMHsoDgVySMDo1S8PA81WCMH2A3YiGQaNm1jsDicNMKBBRAGUhgQcRTCrEEMBavjONzyeiYNA-QBrMbgFZWbFgYCYAC0ACN5nAHrMIHQbCrMtUwOB7jsmfCLoDAiysJrCpiQNizniCQFiYFwmSmZSkAhPfBbPYIAkIL6rZh2XROX9Rexefyhnk9KKRejxcApYFzLL5YrVerGtyEFRMAhw5H-tGYKAiH03ABiYANsFJk1w7mIkkom3sO0O_JOwKEmCuvxuD3cqk-8f-hmQHapfQsbbGIA
<img width="931" alt="Screenshot 2023-12-13 190245" src="https://github.com/apache/echarts/assets/2853797/3e70828d-0d38-456a-bd9a-ea190b477e56">
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-3667161282
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-3667380687
Latest version 6.0 has a new confidence band chart called [lineRange](https://github.com/apache/echarts-custom-series/tree/main/custom-series/lineRange).
--
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] [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] closed issue #19400: [Bug]
URL: https://github.com/apache/echarts/issues/19400
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-1855266081
```xAxis: { type: 'category',``` for first, and ``` yAxis: { type: 'category'``` for second example
📌 please close issue if problem solved.
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "vincesp (via GitHub)" <gi...@apache.org>.
vincesp commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-3667332884
Not stale
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "vincesp (via GitHub)" <gi...@apache.org>.
vincesp commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-1855285293
> `xAxis: { type: 'category',` for first, and ` yAxis: { type: 'category'` for second example 📌 please close issue if problem solved.
All my dimensions contain float values, so I need to use `type: 'value'` for _both_ axes. How can I get the stacking right in that case? This is the typical use case of drawing a confidence band.
--
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] Unexpected behavior when using stacked lines in chart with x-axis of type 'value' [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-1855350374
maybe #18437 can help
--
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] [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #19400:
URL: https://github.com/apache/echarts/issues/19400#issuecomment-1854452629
I'm sorry to close this issue for it lacks the necessary title. Please provide **a _descriptive_ and as _concise_ as possible title to describe your problems or requests** and then the maintainers or I will reopen this issue.
Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.
A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.
Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.
--
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