Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
T-Lorent opened this issue Dec 5, 2024 · 0 comments
Closed
Labels
bug Something isn't working high-priority

Comments

@T-Lorent
Copy link

T-Lorent commented Dec 5, 2024

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/

@T-Lorent T-Lorent added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority
Projects
None yet
Development

No branches or pull requests

2 participants