Skip to content

Bar chart with labels has mouse offset when panning #3191

@yoni-salt

Description

@yoni-salt

Description

When using Bar chart with timeseries with labels the mouse click has an offset from the panning area.

Steps to Reproduce - very easy

  1. open you example codepen for timeline series with labels:
    https://codepen.io/apexcharts/pen/eVvjZx

  2. change the chart type from "area" to "bar"

  3. try panning with your mouse, you will notice there is an offset from when the mouse was clicked to the panning area that get marked

Expected Behavior

The panning area will start from the x-axis of the mouse

Actual Behavior

it has an offset of 50px~

Screenshots

Screen Shot 2022-06-06 at 18 52 52

Reproduction Link

follow the steps above:
https://codepen.io/apexcharts/pen/eVvjZx

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