ApexCharts v8.9.0: stroke + borderRadius bars no longer flip below x-axis for small values
Comments · 0
Be the first to comment.
Explanationby SceneRecap AI
This silent recording checks ApexCharts issue #4882 on version 8.9.0. The issue is about bars flipping below the x-axis when stroke and borderRadius are combined. At 1s the test page shows the heading 'ApexCharts #4882, stroke + borderRadius with mixed high/low values'. The subtitle names ApexCharts v8.9.0 loaded from cdn.jsdelivr.net. The bar chart has a High Values series with bars for A, B, C and D labeled 85, 90, 88 and 92. A green Low Values series sits just above the 0.0 baseline.
At 7.42s the console logs a bar-flip check. It reports ok true, 8 total bars, 4 low bars and a flippedCount of 0 for version 8.9.0. At 9s a dark verification panel appears below the chart. It lists the config: stroke colors ['transparent'], width 1, borderRadius 4 and borderRadiusApplication 'end'. It also lists the series: High Values [85,90,88,92] and Low Values [1.2,0.8,1.5,0.9]. The panel shows 8 total bar paths and 0 bars below the baseline. It concludes that issue #4882 does not reproduce on v8.9.0.
From 13s the user hovers over bars. At 13s a tooltip for C shows 'High Values: 88.0'. At 15s and again at 19s a tooltip for D shows 'High Values: 92.0'. At 21s no tooltip is open, and the green Low Values bars still sit above the x-axis.
Key moments
What to know
- •The test uses ApexCharts v8.9.0 from cdn.jsdelivr.net (1s).
- •The config combines a transparent stroke of width 1 with borderRadius 4 applied at the 'end' (9s).
- •The Low Values series uses small values from 0.8 to 1.5, which is the case that would trigger the flip (9s).
- •The console check at 7.42s and the panel at 9s both report 0 flipped bars.
- •The console warning at 0s about a parser-blocking script loaded via document.write concerns how the library is loaded. It does not affect the result.
Glossary
- borderRadius
- ApexCharts option that rounds the corners of bars, set to 4 here.
- borderRadiusApplication 'end'
- Rounds only the end of each bar that points away from the axis.
- stroke
- Outline drawn around each bar. Here it is transparent with width 1.
- Bars below baseline
- Count of bar paths drawn under the 0.0 x-axis line. A value of 0 means no bar flipped.
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →