You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "alesmit (via GitHub)" <gi...@apache.org> on 2025/08/11 13:51:36 UTC

[I] [Bug] dataZoom misplaced when series has only one data point [echarts]

alesmit opened a new issue, #21195:
URL: https://github.com/apache/echarts/issues/21195

   ### Version
   
   6.0.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsCG0IFsORgC5YAzDAGwGcBTAGjVgBN8MAtYYHYpAX3vQAeAQQERK3BujABPENWIBySDmoKGfBtJFiJ6dJQAWwAO7EyVOpNgy5igG4UArqv56cEaMQAMr9HgHEAIxeXuquNABOENTisADaVqh6eli4-FCepBQ0vnrQGCqKACoxYAq5UrLysAoARhgR5Vbo9REA6hCMYAbEACwVTCzECcnJSaPJyqUFIEEA7ACsAMwLvQAcAJwh2wPJDuTOw4GLK-tb2z6wC5deALrNehoT6AD0L7AAqtAAxpwq0GBYLVqOQTNZgLAaNRrAZocwwBhYAAvDg4WAgYCUCAEOAkCACaiMB6vd7jCZvUZTSgInCzWDHZarDbXC67WAUvZOapxBmnZkXS7XWiwO5silPUa3AaMXDUaBYmCxOJKWXUmblGr7ZwKKUPOW_RjVMmjAIitnSIIPHhWa3oe48ADcQA
   
   ### Steps to Reproduce
   
   1. See bug in [editor](https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsCG0IFsORgC5YAzDAGwGcBTAGjVgBN8MAtYYHYpAX3vQAeAQQERK3BujABPENWIBySDmoKGfBtJFiJ6dJQAWwAO7EyVOpNgy5igG4UArqv56cEaMQAMr9HgHEAIxeXuquNABOENTisADaVqh6eli4-FCepBQ0vnrQGCqKACoxYAq5UrLysAoARhgR5Vbo9REA6hCMYAbEACwVTCzECcnJSaPJyqUFIEEA7ACsAMwLvQAcAJwh2wPJDuTOw4GLK-tb2z6wC5deALrNehoT6AD0L7AAqtAAxpwq0GBYLVqOQTNZgLAaNRrAZocwwBhYAAvDg4WAgYCUCAEOAkCACaiMB6vd7jCZvUZTSgInCzWDHZarDbXC67WAUvZOapxBmnZkXS7XWiwO5silPUa3AaMXDUaBYmCxOJKWXUmblGr7ZwKKUPOW_RjVMmjAIitnSIIPHhWa3oe48ADcQA)
   2. Uncomment/comment the commented data point to switch between buggy and correct positioning of the data zoom
   
   ### Current Behavior
   
   Since version 6.0.0, when the series has only one data point the dataZoom position is not showing under the graph, but it's rendering in a buggy position.
   
   With one data point
   
   <img width="1204" height="435" alt="Image" src="https://github.com/user-attachments/assets/36cca05e-fda0-4f09-9a9a-b593c3eb9e92" />
   
   With more data points
   
   <img width="1326" height="455" alt="Image" src="https://github.com/user-attachments/assets/aaa52501-41d2-4e00-8ea2-357f418cd192" />
   
   ### Expected Behavior
   
   The position of the dataZoom should be the same regardless of the data rendered in the graph.
   
   ### Environment
   
   ```markdown
   
   ```
   
   ### 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] dataZoom misplaced when series has only one data point [echarts]

Posted by "alesmit (via GitHub)" <gi...@apache.org>.
alesmit commented on issue #21195:
URL: https://github.com/apache/echarts/issues/21195#issuecomment-3188891291

   As a temporary fix, set `showDataShadow` to `false` in the dataZoom object. With only one data point, the absence of the data shadow shouldn't be a problem.


-- 
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