kibana
kibana copied to clipboard
[APM] Display the previous period timestamp on the chart tooltip when comparison is enabled
Summary
Currently, only the current period timestamp is displayed on the chart tooltip. It would be great to include the previous period as well as it is not always clear, especially when Period before
is selected.

Pinging @elastic/datavis (Team:DataVis)
@gbamparop we are currently working on a tooltip redesign that will cover this requirement. Can you please explain a bit more the desired outcome, in particular, I'd like to know:
- how are you offsetting the data (by calendar (start of the week vs start of the week before) or by fixed date (7 days vs 14 days ago).
- Do you need to show the exact date/time of the previous period, or just what "changed" between the current and the previous( for example just the different date if the hour is the same)
@markov00 that's great to hear!
The offset depends on the selection of the comparison option.
It can be a day / week before or a custom period which is based on the time difference between the current start and end dates (we subtract this difference from both dates to calculate the previous period). In the last case, the year / day / time might be different than the current one so in my opinion it would be good to display the full date of the current / previous period.
cc @formgeist
cc @gvnmagni
@markov00 Should this issue be transferred to https://github.com/elastic/elastic-charts or is there already a related issue we can follow and link to from here?
This is the issue to follow is actually this one https://github.com/elastic/elastic-charts/issues/919
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)
This is no longer blocked by Elastic Charts (https://github.com/elastic/elastic-charts/issues/615#issuecomment-1410089411).
@gbamparop It's probably too late to include this in 8.8 but we could add it as a stretch goal or include it in 8.9. WDYT?
That's good news! Let's include it in 8.9.