Time offsets on tooltip #919
Labels
:data
Data/series/scales related issue
enhancement
New feature or request
:interactions
Interactions related issue
:tooltip
Related to hover tooltip
Describe the solution you'd like
A common practice in time series charts, is to display multiple series with different offsets to compare month/month growth or daily trends.
The offset can vary a lot from milliseconds to years
This introduces the requirement of showing the right time offset for each series when interacting with the chart.
We should remove from the user the burden of computing the actual time of an offsetted series: some calculations can be easily done like
now -1h
but when we are dealing with weekly or monthly or multiple unit offsets it becomes a difficult task for the user.This issue doesn't necessarily need to be addressed with a specific implementation just only for that, but this should become part of the tooltip redesign #615 process.
This is one of the multiple scenarios when the consumer face when they need to present data differently from the default behavior through the tooltip and I think we should provide a good basic set of components + a good set of practices on using these components in each case. We should not hardcode specific tooltip for specific use-cases, but we should provide a useful set of composable components that can be quickly used to render a custom tooltip.
The current workaround is to use your own tooltip component implementation.
But this doesn't guide the consumer toward the right way to display multiple time offset on the tooltip.
I'd like to open the discussion in this ticket to describe various way to represent multiple time offset series on a tooltip or on a chart
Kibana Cross Issues
an example of this requirement is elastic/kibana#45620
cc @timroes @stratoula @VladLasitsa
The text was updated successfully, but these errors were encountered: