Skip to content

Annotation position seems to be calculated in pixels since version 3.7.0 #627

@gurix

Description

@gurix
annotations: {
    xaxis: [{
      x: 10,
      x2: 30,
      label: {
        text: 'Test'
      }
    }]
  }

Codepen

Version using Apexchartsjs 3.6.12: https://codepen.io/gurix/pen/wbxmYb
Version using Apexchartsjs 3.7.0: https://codepen.io/gurix/pen/LoBmYm

Explanation

In 3.6.12 the annotation correctly spans from the x-value 10 to 30. Since version 3.7.0 it seems like x respectively x2 is taking the number as pixels from the left.

I did not found any hints about this change in the documentation so I had to fix my version to 3.6.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions