Kibana: Stacked line charts incorrectly shows one term as 100%

Created on 25 Jan 2019  路  6Comments  路  Source: elastic/kibana

Kibana version: 6.5.3

Elasticsearch version: 6.5.3

Server OS version: Centos 7

Browser version: Chrome 71.0.3578.98

Browser OS version: Windows 10

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

Describe the bug: When you chose a stacked line graph, the line for one of the terms is drawn correctly, while the other is drawn incorrectly as 100%.

Steps to reproduce:

  1. Create a date histogram using a terms agg as a sub aggregation.

image

  1. Switch from bar to line in Chart Type
  2. Switch from normal to stacked in Mode

The true line is drawn incorrectly as 100%

Normal Mode:
image

Stacked Mode:
image

Expected behavior:

Similar to the bar version of the graph:

image

image

Visualizations bug

Most helpful comment

Sorry, I misread that. Reopening.

All 6 comments

That's actually "expected behavior". Stacking line charts, (without enabling areas) usually doesn't make much sense in the terms of data visualizations. Stacking makes sure, that not all series are drawn from "the bottom" of the chart, but are drawn on top of the previous series (as it's pretty well shown in the bar chart). If you use lines, it doesn't really make sense to use that, because due to the lack of "filling" of the lines, it's pretty confusing, that the 2nd line is now drawn on top of the first line. But the outcome is perfectly fine. The output will always just be the line, that connects the top of the bars in the stacked bar chart.

I will close this since this is desired behavior, though we def will make sure in the new visual editor (#17076) that users can't shot themselves in their foot using senseless chart configurations.

The issue is not the stacked line chart but the normal line chart... It's acting like its stacked and not starting the lines from the bottom of the chart.

Sorry, I misread that. Reopening.

The error is persistent in Version 7.5.1
There is a horizontal line drawn on 100%.

It appears on Visualization: Line -> Chart type: Line -> Mode: Stacked ->Y-axes -> Mode: Percentage

Moreover, if you switch Mode from Stacked to Normal, nothing happens, so there are no "Normal" Line Visualizations with y-axes Mode: Percentage.

normalline
stackedline

Hi @timroes, I was wondering if there is any update on this issue? This type of chart will allow us to see information in a very insightful way.

Hi, we are in version 7.5.2 and also affected by this. Is there any new info about the status of this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stacey-gammon picture stacey-gammon  路  3Comments

snide picture snide  路  3Comments

treussart picture treussart  路  3Comments

tbragin picture tbragin  路  3Comments

spalger picture spalger  路  3Comments