Skip to content

feat: Chart tooltip enhancements

Martin Wortschack requested to merge mw-chart-tooltip-enhancements into master

This MR standardizes our chart tooltips. It adds a reusable getDefaultTooltipContent method to the chart config which:

  • displays x axis value (x axis title) in the popover header
  • updates the popover body:
    • single series: y axis title y axis value
    • multi series: series name y axis value

Note: This is a breaking change since we are changing the default content of some tooltips, i.e., instead of displaying the series name in the tooltip body we now display the y axis title for the area chart (see screenshots). We might need to check in gitlab whether we need to update existing area charts by replacing the series name with the y axis title.

Screenshots

Chart Before After
Area area_before area_after
Area (multi series) area_multi_series_before area_multi_series_after
Column column_before column_after
Line line_before line_after
Stacked column stacked_column_before stacked_column_after
Discrete scatter discrete_scatter_before discrete_scatter_after
Edited by Martin Wortschack

Merge request reports