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 callback function for grid.tooltip.formatter? #22

Open
jtpio opened this issue Dec 6, 2024 · 1 comment
Open

Support for callback function for grid.tooltip.formatter? #22

jtpio opened this issue Dec 6, 2024 · 1 comment

Comments

@jtpio
Copy link

jtpio commented Dec 6, 2024

The official Echarts docs mention the use of a callback function for grid.tooltip.formatter as a second option: https://echarts.apache.org/en/option.html#grid.tooltip.formatter

However it's not clear if such functionality could be supported by the EChartsRawWidget, since the function is expected to be in JavaScript in the original Echarts library.

Maybe a good tradeoff could be to allow passing a JS function as a raw string, to be evaluated and executed on the frontend.

@trungleduc
Copy link
Owner

Yep, supporting JS callback is quite tricky, even by using the raw JS string since most JS classes are auto-generated.
If the number of callback options is not too much, I could do it manually, but it is not on my priority list. For the next version, I want to focus on supporting chart action (https://echarts.apache.org/en/api.html#action)

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

No branches or pull requests

2 participants