Skip to content

TSVB table trend arrows always show slope of 0 #59656

@flash1293

Description

@flash1293

Kibana version: master

Elasticsearch version:

Server OS version:

Browser version:

Browser OS version:

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

Describe the bug: The trend arrows in the TSVB table visualization should indicate the slope of a linear regression of the given metric over time, but they always show a 0.

Steps to reproduce:

  1. Create TSVB vis
  2. Go to table
  3. Select group by field
  4. Enable trend arrows for metric

Expected behavior:

Trend arrows should be shown for each line respective to slope, but slope is always zero.

Screenshots (if relevant):
Screenshot 2020-03-09 at 14 56 53

Response showing a timeseries consisting out of two values clearly having a positive linear regression, but the slope value is still zero. (Value is calculated in src/plugins/vis_type_timeseries/server/lib/vis_data/table/process_bucket.js)

Errors in browser console (if relevant):

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

Any additional context:

This might very well be me misunderstanding how this feature is supposed to work, but if that's the case it's probably worth mentioning it in the docs.

Metadata

Metadata

Assignees

Labels

Feature:TSVBTSVB (Time Series Visual Builder)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions