feat: Chart tooltip enhancements
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
- single series:
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 (multi series) | ||
Column | ||
Line | ||
Stacked column | ||
Discrete scatter |
Edited by Martin Wortschack