annotations.fillColor not showing correctly when y-axis is out of visible range #5055
Unanswered
gkstkdgh09
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using ApexCharts with annotations.yaxis to highlight a range using y and y2. Here's a simplified version of my config:
annotations: { yaxis: [ { y: 0, y2: 150, borderColor: '#FF4560', fillColor: '#FF4560', } ] }
The annotation works, but the fillColor disappears when the y/y2 range is outside the currently visible y-axis range. It seems like the annotation is clipped or hidden based on the chart's current y-axis scale.
Is there a way to ensure that the fillColor always displays regardless of the current visible y-axis scale? Or is there a workaround to force the annotation to render properly?
Thanks in advance.
https://codepen.io/gkstkdgh09/pen/LEVRoGK
Beta Was this translation helpful? Give feedback.
All reactions