Skip to content

Shade area under lines doesn't work with negative values #22685

Open
@mcrapts

Description

@mcrapts

InfluxDB has an option to shade area under lines. However, shading should always be between the line and the x-axis. InfluxDB shades the area between the bottom of the chart and the line. This causes very strange behavior for negative values.

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. Create a data source that has negative and positive values
  2. Create a chart and select "shade area under lines"
  3. Notice that the area is below the lines is always shaded, even if the value is negative. With negatives values, the area between the x-axis and line should shaded.

Expected behavior:
Area between x-axis and line shaded.

Actual behavior:
Area between x-axis and bottom of chart is shaded (similar to Chronograf).

Environment info:

  • System info: Linux 5.4.0-77-generic x86_64
  • InfluxDB version: InfluxDB 2.0.8
  • Other relevant environment details: n/a

InfluxDB 2.0.8:
image

Chronograf:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions