archiewood commented on issue #21523:
URL: https://github.com/apache/echarts/issues/21523#issuecomment-3986149931

   For others encountering this issue, my workaround is to change the boundary 
gap based on the number of candles:
   
   
   ```js
   const boundaryGapPercent = $derived.by(() => {
        const count = candlestickData.length;
        if (count <= 1) return 0; // Single candle centers naturally
        return Math.max(3, Math.ceil(25 / count));
   });
   ```
   
   ie boundaryGap
   
   1 candle: 0%
   2 candles: 13%
   3 candles: 9%
   4 candles: 7%
   5 candles: 5%
   6 candles: 4%
   7 candles: 4%
   8 candles: 4%
   9+ candles: 3%


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to