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

Use the formatter function of the Apache ECharts tooltp in the ods-charts tooltipSuggest a new feature #194

Closed
2 tasks done
jacques-lebourgeois opened this issue Apr 12, 2024 · 0 comments · Fixed by #197
Assignees
Labels

Comments

@jacques-lebourgeois
Copy link
Member

Prerequisites

Proposal

Aautomatically use the Apache Echarts tooltip formatter function when provided combined with the ods-charts tooltip.

Motivation and context

If you want to add a unit in the Apache ECharts tooltip, you have to use the formatter function of the tooltip. Here's an example of the unit added in the Apache ECharts tooltip (without ods-charts tooltip) : https://codepen.io/jacques-lebourgeois/pen/mdgKQBx.

If you use tooltips charted by ods-charts, unfortunately our library is incompatible with the use of the tooltip's formatter function and you can't both use the ods-charts tooltips and unit added in the formatter function.
You have to specify a different funtion to add unit like demonstrated in https://codepen.io/jacques-lebourgeois/pen/NWmzEVQ

The evolution is to re-use the Apache ECharts tooltip formatter() function when provided

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