elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.78k stars 8.19k forks source link

[Visualizations] Allow user to understand 'dotted lines' when using 'missing values' in embedded lens visualisations #164534

Open roshan-elastic opened 1 year ago

roshan-elastic commented 1 year ago

📖 Description

Please read the following issue description and solution for context:

When dotted lines show in embedded Lens visualisations, it is not clear to the user why there are there or what they mean. In the Infra UI (e.g. hosts) we use this on all charts so that when users use a duration which leads to a interval which is shorter than the frequency of data collection - they don't see spikey lines like this:

Spikey lines image

Instead, we show this:

Gaps filled image

We use the following lens config to achieve this:

image

Why do we use the dotted line?

Without the dotted line, our target user (the SRE) won't be able to see genuine gaps in data (e.g. an outage for an hour). The dotted lines allow them to see when data is being filled in. For example:

Example gap image

What's the problem?

The dotted line is not explained in the UI so the user is not able to see why one chart has a dotted line and why another doesn't.

Our workaround

We are adding a link in a popover pointing towards documentation to explain to the user that:

Sample tooltip image

Solution Proposal

The workaround we are doing relies on the user finding our popover, we can't surface it when dotted lines show (as we don't know when it is happening).

Note : Sharing a generic explanation if they want to dig more into how it works is fine but we assume that the user doesn't want to learn about lens - they want the simplest explanation of what the dotted lines means in the context of what they are seeing and why they are seeing it (and perhaps they can learn more about the underlying lens functionality in a further link)

elasticmachine commented 1 year ago

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

dej611 commented 1 year ago

cc @markov00 @gvnmagni I think this makes sense, in particular when only dotted lines are shown vs both solid and dotted in the same context, as the user has no comparable style to guess the difference. Would you think this should be addressed within the library context or rather at higher level (consumers like Lens, etc...)?

markov00 commented 1 year ago

This will probably be addressed by the library that knows these "situations" and can show something in the legend or somewhere else.

roshan-elastic commented 1 year ago

@ninoslavmiskovic - slightly related, have you seen how Grafana handles missing values?

https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/time-series/#connect-null-values

(thanks @markov00)

Pretty cool and one of our SREs was wondering about a possibility like this...with something like this, we might not need a dotted line (and it would only fill small gaps - unfilled gaps would be self-evident)

markov00 commented 4 months ago

Linking relative issues: https://github.com/elastic/kibana/issues/107931