You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "michaelmoopenn (via GitHub)" <gi...@apache.org> on 2023/11/11 17:39:34 UTC

[I] [Bug] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data [echarts]

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

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?code=MYewdgzgLgBMCGsC8MDaBdAUAMxAJxgAoAbAU1gEsYUBGAbhioB4UBWABnYYoGoeBKGAG9MMMXEQA6AA4BXCAAtCAcnjL-mAL6ZQkWABNE8amiy4CJcoxP1rLGDU7c-gkeJiGo8GfKWoARDQA7ABskgDMABz-ADSBQQCckgBM4bHxYck06cFJACxp6DEBuZI00XHlNJKRyTlBkZIJQTm1knl5_kUlbeGsrck1Ca3VrMOVkeHt_d2BbQkhA-3ZE9WRK3N5ZXWz5VPNrWF57K1TrGkTYawt6BraINJQFOAmbjAAHgCC7xQQAFzCUTiTzwAEIKBAzQxIEAT2-vwBQihQLEIIAWiAQABbREomBQGHSUgA5QUSAUfSkZTQ9zQeB4KAA9g08SkMD6AGOdiQlkQUh4Cikf5oPFvdwEokkhDssjQCjAADW1LxqKMAJBeO0YiwmjomEwfKgAEkwFB-QA3eDEQjYWRgYBPF6EVxAkE-RSEHr7FqVBbtE4TM7hDblK5BbK3IHg91KfwAI38GjEWJhAGEFPSoJJDQB5R7PMCEMUfeHC4sgsGIHl4vkCoUA1AqwHudwVjxGJvI9xYMSafh6qEwZKcdj9oA
   
   ### Steps to Reproduce
   
   Open the minimal reproduction link and wait for few candlesticks to show up.
   Then zoom in and out, you will see that the new candles display correctly or incorrectly depending on the zoom level.
   The issue occurs also when changing the right panel width with the mouse
   
   (From my experience, the issue occurs only when updating the chart with setOption)
   
   
   ### Current Behavior
   
   New candles added with setOption display incorrectly when zooming out with a certain amount of data.
   
   ### Expected Behavior
   
   The new candles should display with the right yAxis values for any zoom level as long as the candles are in the display area.
   
   ### Environment
   
   ```markdown
   - OS: MacOS Ventura 13.0
   - Browser: Chrome, Safari
   - Framework: react@18.2.0
   ```
   
   
   ### 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] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data [echarts]

Posted by "michaelmoopenn (via GitHub)" <gi...@apache.org>.
michaelmoopenn closed issue #19290: [Bug] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data
URL: https://github.com/apache/echarts/issues/19290


-- 
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] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data [echarts]

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

   duplicate of #18983, #18503.  On large zoom-out candlesticks become **1 pixel wide**, which is the minimum by design.


-- 
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] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data [echarts]

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

   ok, so the issue is about the **height**, not the width.
   Notice that [candlestick.data](https://echarts.apache.org/en/option.html#series-candlestick.data) should be in format **[open, close, lowest, highest]**, which is not the case in your data:
   present = data.push(["183.97","196.40","183.531","186.571"])
   correct = data.push([183.97,186.571,183.531,196.40])


-- 
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] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data [echarts]

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

   You are totally right! Thanks for your responses!


-- 
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] Candlesticks display incorrectly when zooming out versus zooming in with a certain amount of data [echarts]

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

   If you examine the zoom-out screenshot closely, you'll notice that the new candles are cut in half, with the upper portion not being displayed. The upper part has the same width as the visible section. If the lower part is visible, the upper part should also be visible and not cut off.


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