apexcharts.js
apexcharts.js copied to clipboard
XAnnotation needs to match label not the value
Description
In relation to https://github.com/apexcharts/apexcharts.js/issues/2671 An annotation doesn't show up, when it's x value doesn't match the formatted X-Axis-label.
Steps to Reproduce
- Open the codepen (link below).
- See that the "this shows up" annotation shows up.
- See that "this not" annotation doesn't show up.
- Changing the annotation's x value to
-6-
instead of6
"fixes" that.
Expected Behavior

Annotations should shown for a value, not the formatted x label.
Actual Behavior

Annotations x value need to match the formatted x label.
Reproduction Link
https://codepen.io/mreiche/pen/LYQNyjr