Skip to content

X-axis position of annotations in sparkline #4081

@fedorovvldmr

Description

@fedorovvldmr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions