Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Brush selection doesn't work properly - fails to calculate correct position of zoomPanSelection #5123

@alikouhfar

Description

@alikouhfar

Description

The selection handles in the Brush Chart do not respect the data boundaries when resizing the selection area. When a user drags a selection handle beyond the minimum or maximum data limit, the selection continues to expand indefinitely into empty space, rather than being constrained to the actual data range.

Steps to Reproduce

  1. Navigate to the official Brush Chart demo
  2. Attempt to drag either selection handle beyond the existing data boundaries
  3. Observe that the selection area extends indefinitely beyond valid data ranges

Expected Behavior

The selection area should be constrained to the minimum and maximum values of the dataset. Selection handles should stop at the chart's data boundaries and not allow extension into areas without data.

Actual Behavior

The selection handles can be dragged indefinitely beyond the data limits, creating an invalid selection range that doesn't correspond to actual data points.

Videos

Apex_Charts_Brush.mp4

Environment

  • ApexCharts Version: [as seen on demo page]
  • Browser: Chrome Version 141.0.7390.108 (Official Build) (64-bit)
  • OS: Windows 11

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