Skip to content

Scale to Data Bounds margin applied only to lower bound #44272

@dpotter-intoto

Description

@dpotter-intoto

Kibana version: 7.3.1

Elasticsearch version: 7.3.1

Server OS version: CentOS Linux release 7.6.1810 (Core)

Browser version: 76.0.3809.100 (Official Build) (64-bit)

Browser OS version: Microsoft Windows [Version 10.0.17134.950]

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

Describe the bug: When creating a Line Visualization, setting the Y-Axis Custom Extents option Scale to Data Bounds and a Bounds Margin applies the margin to the lower bound, but not to the upper bound.

For example, in the attached screenshot, the Bounds Margin is set to 5, indicating that the extents of the Y-Axis should be (max(metric)+5) and the lower axis should be (min(metric)-5). As you can see, the lower bound is correctly set, but the upper bound has not had the margin added.

Steps to reproduce:

  1. Create new visualization of type line
  2. (I chose an elasticsearch source)
  3. Add a metric. (I chose an average of a float value)
  4. Add an X-Axis bucket of Date Histogram
  5. Enable the Y-Axis option "Scale to Data Bounds" and set the Bounds Margin to a positive value (I used 5).
  6. Apply Changes
  7. Observe that the upper extent of the Y-Axis is the max value of the metric

Expected behavior:
In step 7 above, the upper extent of the Y-Axis should be (max value of metric + margin)

Screenshots (if relevant):

image

Errors in browser console (if relevant):

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

Any additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:VislibVislib chart implementationTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experiencev7.3.1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions