You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "YuanyeChi (via GitHub)" <gi...@apache.org> on 2024/06/06 17:48:06 UTC
[I] Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given [echarts]
YuanyeChi opened a new issue, #20009:
URL: https://github.com/apache/echarts/issues/20009
### Version
5.5.0
### Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/proud-frost-jdgn8t?file=%2Fsrc%2Findex.js%3A17%2C13&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clx3jngyy00063b6k3i62ybf6%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clx3jngy
y00023b6kekqyayx6%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clx3jngyy00033b6kyfou0mzo%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clx3jngyy00053b6kr2937cd9%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clx3jngyy00023b6kekqyayx6%25
22%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clx3jngyy00013b6kq0a75yoy%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fsrc%252Findex.js%2522%252C%2522state%2522%253A%2522IDLE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A17%252C%2522startColumn%2522%253A13%252C%2522endLineNumber%2522%253A17%252C%2522endColumn%2522%253A13%257D%255D%257D%255D%252C%2522id%2522%253A%2522clx3jngyy00023b6kekqyayx6%2522%252C%2522activeTabId%2522%253A%2522clx3jngyy00013b6kq0a75yoy%2522%257D%252C%2522clx3jngyy00053b6kr2937cd9%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clx3jngyy00043b6km1pheoaq%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clx3jngyy00053b6kr2937cd9%2522%252C%2522activeTabId%2522%253A%2522clx3jngyy
00043b6km1pheoaq%2522%257D%252C%2522clx3jngyy00033b6kyfou0mzo%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clx3jngyy00033b6kyfou0mzo%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D
### Steps to Reproduce
Open the codesandbox and you will see the abnormal behavior.
### Current Behavior
<img width="379" alt="image" src="https://github.com/apache/echarts/assets/37322570/c6a2b220-fba9-417e-b2a4-fa91274673cc">
Right two columns won't show second series' information(in green color). When I set the x axis range bigger like 0-10 or remove the range, the missing two green series come back.
### Expected Behavior
<img width="388" alt="image" src="https://github.com/apache/echarts/assets/37322570/36f89660-813e-4795-b209-ec40f592df3b">
All five column should have two stack bars because there is no 0 in given 2 series.
### 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] Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given [echarts]
Posted by "YuanyeChi (via GitHub)" <gi...@apache.org>.
YuanyeChi commented on issue #20009:
URL: https://github.com/apache/echarts/issues/20009#issuecomment-2153746197
Thanks for giving the catetory type solution! My original intention is to use stack on value type axis, and the example I gave simplified. I found there are already several related issu: #15102 #16765 #7937.
My real application takes in dataset from scientific instrument whose x axis is in at least 4-digit decimal, so imputating the missing value might not be very ideal but is a great workaround.
--
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] Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20009: Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given
URL: https://github.com/apache/echarts/issues/20009
--
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] Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20009:
URL: https://github.com/apache/echarts/issues/20009#issuecomment-2153612445
API for [stack](https://echarts.apache.org/en/option.html#series-bar.stack) says _"Name of stack. On the same category axis"_.
Your _xAxis_ type is 'value' (not 'category') and therefore bars are not stacked, and some are hidden by others and do not show up. [Demo fix](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAmBDMWDOApmAFzJrqx7ACuATgMYGkDa5FszAjADSycAMvAKwBdbmwrMATLykzYAFjET0zAMyyAHLyXj2qhTo2xRe_cyE6AnLwEiJy9hggBbAtDxQPLAOS1gAO4-vD70nMGwoVI-9ugAvmYAHgCCiRB4pEjsLhDQpILZWImkAGxmAPTlYACeIEyRAG5YADbUBMESNXWkoTgEAObAtNU-5Ank1anpmePo2LgAWsDALiwSqPqwXfU-uZ4Y7RKzFBv62z14zRAHtKPsceSOlAS0EAQZHOsqsNDAAPrzLBrTaqHh8fhPTbSWRSSHmYxSTRw9jMQyKNTIySWRRWWL6THnSIAIywt14eFw9AA1j1EhF3PRgAdiEhqsROA97mZ0Kd2L8ATggZ8QRwwaZvqp5LoJRxjNKRajhJjVNi7N8CbUdiSyegKVhqbT6dBGczWcQpJyKJb7HEANxAA)
--
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] Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20009:
URL: https://github.com/apache/echarts/issues/20009#issuecomment-4703141937
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
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] Stack bar plot doesn't show correctly when under specific x axis range and with dataZoom given [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20009:
URL: https://github.com/apache/echarts/issues/20009#issuecomment-4644155348
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