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

support for events? #8

Closed
dfguerrerom opened this issue Sep 18, 2024 · 3 comments · Fixed by #21
Closed

support for events? #8

dfguerrerom opened this issue Sep 18, 2024 · 3 comments · Fixed by #21

Comments

@dfguerrerom
Copy link
Contributor

dfguerrerom commented Sep 18, 2024

I would like to trigger some events from the user's interaction with the graphs as echarts describes in https://echarts.apache.org/handbook/en/concepts/event, is there any way to do it with this extension?

@trungleduc
Copy link
Owner

Hi, it's possible to add these events to the extension. I can add the same APIs as in the JS side to python. For example

from ipecharts import EChartsWidget
...
my_chart = EChartsWidget(option=option)

def my_callback(params):
     print(params)

my_chart.on('mouseover', { "seriesIndex": 1, "name":  "xx" }, my_callback)

I can work on this feature in a few weeks.

@dfguerrerom
Copy link
Contributor Author

Wow, awesome! Thanks I will test it.

@trungleduc
Copy link
Owner

I will add action dispatching later then release 1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants