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

Column chart with datetime on x axis breaks annotation positioning on y axis

Open onetdev opened this issue 9 months ago • 3 comments

Description

Annotation starts from the middle of the first column and stops at the middle of last. This doesn't seem to affect other xaxis types.

Steps to Reproduce

  1. Have a chart that uses the following configs:
var options = {
  xaxis: {
    type: "datetime",
  },
  annotations: {
    yaxis: [
      {
        y: 0,
        y2: 100,
        borderColor: "red",
        strokeDashArray: 0,
      }
    ],
  },
  ....
};

Expected Behavior

The annotation to start from the left edge of the grid and finish on the right edge

Actual Behavior

Annotation starts from the middle of the first column and stops at the middle of last.

Screenshots

The issue with datetime type

image

This is how numeric looks:

image

Reproduction Link

https://codepen.io/onetdev/pen/xxNOvZr

onetdev avatar May 24 '24 07:05 onetdev