Refactor tooltip formatter from function to class #14224
Labels
chore
Feature:Visualizations
Generic visualization features (in case no more specific feature label is available)
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
The current tooltip formatter implementation contains a lot of nested functions that return functions. Ultimately, the last returned function is used as the formatter to format the event into an html string. [PR embed visualization in tooltip] (#14102) adds a
cleanUp
function to the tooltipFormatter.@thomasneirynck suggested the following updates that were deemed to large for the scope of PR 14102 but still valuable.
something like:
The text was updated successfully, but these errors were encountered: