-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
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:
- Create new visualization of type line
- (I chose an elasticsearch source)
- Add a metric. (I chose an average of a float value)
- Add an X-Axis bucket of Date Histogram
- Enable the Y-Axis option "Scale to Data Bounds" and set the Bounds Margin to a positive value (I used 5).
- Apply Changes
- 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):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
