Skip to content

Resizing of brush chart selection area doesn't update main chart rerender #4853

Closed
@T-Lorent

Description

@T-Lorent

Description

I'm using a Brush Chart with the react wrapper.

Unfortunately, the main chart don't update anymore when I change the size of my timeframe on the brush chart. The rerendering of the main chart is only triggered when I move my timeframe along the x axis.

From my investigation, it's because the "selection" method in options>chart>events>selection isn't fired when I resize the selection area, but only when I move it along the axis.

Steps to Reproduce

  1. Go directly on the Brush Chart demo
  2. Resize the selection area on the brush chart
  3. See that the main chart isn't updating on resize

Expected Behavior

Before, the main chart used to automatically rerenderer whenever the selection was resized.

Actual Behavior

Now, the main chart isn't rerendering to match the timeframe selected on the brush chart when it's only resized.

Screenshots

Step 1 : Initial state

Capture d’écran 2024-12-05 163115

Step 2 : After resizing selection area on Brush Chart

Capture d’écran 2024-12-05 163235

Reproduction Link

My issue is actually already visible on the ApexChart demo of Brush Chart :
https://apexcharts.com/javascript-chart-demos/line-charts/brush-chart/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions