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

Add support for additional echart events #2716

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Add support for additional echart events #2716

merged 3 commits into from
Mar 20, 2024

Conversation

falkoschindler
Copy link
Contributor

@falkoschindler falkoschindler commented Mar 18, 2024

This PR tries to solve feature request #2679 by adding support for additional chart events. They can be accessed using the "chart:" prefix like this:

ui.echart({
    "brush": {},
    "xAxis": [{"type": "value"}],
    "yAxis": [{"type": "value"}],
    "series": [{"type": "scatter", "data": [[1, 2], [3, 4]]}],
}).on('chart:brush', lambda e: print(e))

This example prints the current selection when using the rectangle or box selection.

Open tasks:

  • documentation
  • pytest

@falkoschindler falkoschindler added this to the 1.4.19 milestone Mar 18, 2024
@falkoschindler falkoschindler self-assigned this Mar 18, 2024
@falkoschindler falkoschindler added the enhancement New feature or request label Mar 20, 2024
@falkoschindler falkoschindler marked this pull request as ready for review March 20, 2024 07:25
@rodja rodja merged commit 294538e into main Mar 20, 2024
7 checks passed
@rodja rodja deleted the echart-events branch March 20, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants