Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When selecting time ranges on a TSVB time series visualisation, some ranges show "No data to display for the selected metrics" #87704

Closed
iamacpherson opened this issue Jan 7, 2021 · 4 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@iamacpherson
Copy link

Kibana version: 7.9.3

Elasticsearch version: 7.9.3

Server OS version: Centos 7

Browser version: Chrome Version 86.0.4240.198

Browser OS version: Windows 10 Enterprise N Version 1809

Original install method (e.g. download page, yum, from source, etc.): Docker image

Describe the bug:
On a TSVB Time Series plot, some date-time selections, despite encompassing all documents in the index, result in a "No data to display for the selected metrics" message. The screenshots below show that the behaviour occurs even between small changes in time, with no apparent connection to the span of the time range.

Possible patterns I've noticed:

  • When selecting on the graph area, selections that come close to the ends of the dataset seem most likely to show this issue.
  • The issue does not seem to occur when the time selection starts or ends within the dataset (there are documents before the start date, and/or documents after the end date)
  • The visualisation I encountered this issue with has two data series filtered for one value in a certain field. Each series is then grouped by terms on another field where the cardinality is high (a unique count of 60 and 72 for the two filtered values) and each unique value must be plotted, so naturally I've set the top count to a high number (100 currently for both). I was able to reproduce the issue with the sample data by grouping on high cardinality fields and setting the top count above 15. When there was no grouping or a low top count was selected, the issue did not occur.

Steps to reproduce:

  1. Create a TSVB Time Series, where the data series is grouped by a high cardinality field and a large top count value is selected (I encountered on values >15).
  2. Select multiple time ranges, using either the date picker or the graph area.

Expected behavior:
The data is correctly displayed for all time filters where there are documents.

Screenshots (if relevant):
Series of time selections encompassing the whole data range:
1_2ya-now results
2_15moa-now no results
3_21da-12da results
4_21da-14da no results
5_19da-14da results
6_17da-14da no results
7_17da-13da results
8_17da-15da results

The number of documents over time:
data count

Visualisation configuration:
data-metrics
data-options-a
data-options-b
panel-options

Errors in browser console (if relevant):
No messages seen

Provide logs and/or server output (if relevant):
No messages seen

Any additional context:

@myasonik myasonik added bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed labels Jan 7, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@alexwizp
Copy link
Contributor

@dziyanadzeraviankina could you please have a look?

@stratoula
Copy link
Contributor

@iamacpherson thank you for reporting this. I think that this is not a bug but has to do with the Drop Last value setting. I think if you go to Panel Options of your timeseries tab and switch this setting to No, the problem will be solved
image

Can you verify that? I have created another issue to change the default value to No, in order to not be so confusing #95756

@timductive
Copy link
Member

Closing this based on comments, please re-open if issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

7 participants