You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 🖍️
The plotly-resampler in the Flask backend does not resample data as expected when zoom events are triggered in the React frontend. Despite adding an API endpoint to handle zoom events with start and end points for the data range, the data remains unresampled.
Reproducing the bug 🔍
To reproduce this issue, follow these steps:
Set up a Flask backend with an endpoint to handle data retrieval (/data) and integrate the plotly-resampler library.
Use the FigureResampler to add data traces to the figure in the Flask endpoint.
On the React frontend, implement a zoom handler that sends start_date and end_date to the /data endpoint.
Verify if the data sent back to the frontend is resampled correctly according to the zoomed range.
Expected behavior 🔧
The plotly-resampler should resample the data to reflect the specified zoom range and return the appropriately resampled data to the frontend.
Environment information
OS: Windows 11
Python environment: Sytem environement
Python version: 3.12.5
plotly-resampler environment: Flask web app, browser: Microsoft edge
plotly-resampler version: 0.10.0
Additional context
The previous implementation with Dash handled resampling without issues, but the direct integration with React requires more manual resampling management, and plotly-resampler doesn’t appear to react to zoom events as it did with Dash.
The text was updated successfully, but these errors were encountered:
anish-dev21
changed the title
[BUG] **Plotly-Resampler Not Resampling on Zoom Events in Flask-React Integration**
[BUG] Plotly-Resampler Not Resampling on Zoom Events in Flask-React Integration
Oct 31, 2024
Describe the bug 🖍️
The
plotly-resampler
in the Flask backend does not resample data as expected when zoom events are triggered in the React frontend. Despite adding an API endpoint to handle zoom events with start and end points for the data range, the data remains unresampled.Reproducing the bug 🔍
To reproduce this issue, follow these steps:
/data
) and integrate theplotly-resampler
library.FigureResampler
to add data traces to the figure in the Flask endpoint.start_date
andend_date
to the/data
endpoint.Minimal code example:
Flask Backend:
React Frontend:
Expected behavior 🔧
The
plotly-resampler
should resample the data to reflect the specified zoom range and return the appropriately resampled data to the frontend.Environment information
Additional context
The previous implementation with Dash handled resampling without issues, but the direct integration with React requires more manual resampling management, and
plotly-resampler
doesn’t appear to react to zoom events as it did with Dash.The text was updated successfully, but these errors were encountered: