apexcharts.js
apexcharts.js copied to clipboard
X-axis position of annotations in sparkline
Description
In a line graph, the annotation points along the X axis are drawn incorrectly in sparkline mode. If you disable sparkline mode, the annotations are drawn correctly.
Steps to Reproduce
- I took an example from the documentation (https://apexcharts.com/docs/annotations/)
- I left only point annotations and numbers without dates
- the annotation is drawn near the left edge of the graph instead of the middle
- if you remove the sparkline mode, the annotation is drawn in the middle
Expected Behavior
An annotation is drawn in the middle of the graph
Actual Behavior
The annotation is drawn on the left side of the graph
Reproduction Link
https://codepen.io/fedorovvldmr/pen/mdveZYv