elastic / timelion

Timelion was absorbed into Kibana 5. Don't use this. Time series composer for Elasticsearch and beyond.
Other
347 stars 79 forks source link

Odd looking stacked bars #199

Closed kimyx closed 7 years ago

kimyx commented 7 years ago

Using bars in timelion like this:

.es(index="mms-overwritten", metric="max:catZero", timefield="date").bars(stack="true", width=50).label("Category Zero").color(  #1e52eb ),  
.es(index="mms-overwritten", metric="max:catOne", timefield="date").bars(stack="true", width=20).label("Category One").color(#f66),  
.es(index="mms-overwritten", metric="max:catTwo", timefield="date").bars(stack="true", width=20).label("Category Two").color(#e1e73e),  
.es(index="mms-overwritten", metric="max:catThree", timefield="date").bars(stack="true", width=10).label("Category Three").color(#ae61fc),  
.es(index="mms-overwritten", metric="max:catFour", timefield="date").bars(stack="true", width=20).label("Category Four").color(#2fc2c4)

Normally all the widths are set to 10, but the varying widths makes a problem obvious that only shows up randomly otherwise.

With these widths, the chart looks as shown here:

timelion_bars

Setting the width to 50 on the "Category Four" set of bars makes it hang below the x-axis. Reducing the width to 10 makes it look ok. It's as if the bar must be at least as high as it is wide, and that can push it below the axis.

Also, this chart looks the same whether I set stack="true" or stack="false". I'd expect them to differ.

Using kibana 5.1.1 and the timelion that came with it.

tbragin commented 7 years ago

@kimyx Timelion is now part of Kibana. Could you file this issue in https://github.com/elastic/kibana/issues ?