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

Feature request : Click + drag to zoom, event/callback to back-end #2631

Open
woj-b opened this issue May 29, 2024 · 0 comments
Open

Feature request : Click + drag to zoom, event/callback to back-end #2631

woj-b opened this issue May 29, 2024 · 0 comments
Labels
enhancement Feature requests or improvements

Comments

@woj-b
Copy link

woj-b commented May 29, 2024

Feature Request

Description of Problem:

I'm using the Perspective plugin for Panel (https://panel.holoviz.org/reference/panes/Perspective.html) to build an interactive UI, which renders some timeseries charts based on quite dense data - I've implemented a basic version of this, which downsamples the data and handles click events to zoom in and fetch higher-granularity timeseries.

While this solution alongside some basic additional controls do the job reasonably well, it would be great to be able to click + drag on a section of the chart to zoom in and get a callback on the back-end with the details of the selected range (e.g. start/end date) to determine if I need to load higher resolution data into the chart (e.g. daily data for history >1 month, n-second data for shorter timespans - something similar to: https://canvasjs.com/python-charts/features/chart-zoom-pan/

From an initial look at some of the Python code, this would require changes both in the JavaScript/Python bindings on the Perspective side as well as the Panel Python APIs to handle events other than a click, but a lot of the framework seems to be in place already - is this something on the roadmap?

@woj-b woj-b changed the title Feature request : Click + drag zoom + events and callbacks Feature request : Click + drag to zoom, event/callback to back-end May 29, 2024
@timkpaine timkpaine added the enhancement Feature requests or improvements label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or improvements
Projects
None yet
Development

No branches or pull requests

2 participants