apexcharts.js icon indicating copy to clipboard operation
apexcharts.js copied to clipboard

X-axis position of annotations in sparkline

Open fedorovvldmr opened this issue 1 year ago • 0 comments

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

  1. I took an example from the documentation (https://apexcharts.com/docs/annotations/)
  2. I left only point annotations and numbers without dates
  3. the annotation is drawn near the left edge of the graph instead of the middle
  4. 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

fedorovvldmr avatar Oct 27 '23 13:10 fedorovvldmr