Kibana: TimeLion change legend

Created on 21 Dec 2016  路  4Comments  路  Source: elastic/kibana

Way to change timelion chart legend text or have tooltip instead(preferable because for split legend is terrible)?

Timelion feedback_needed

Most helpful comment

@zharben Yeah, the data point value is shown in the legend. I didn't notice this issue filed earlier, so I already started a discussion with another user around tooltips in https://github.com/elastic/kibana/issues/9746 -- I'll transfer your comments there.

@ghostinside Regarding ability to modify what is in the legend, that is possible using the .label() function. Specifically for split() function, I agree with you, this is useful. Here is an example. Does that help?

.es(index=logstash-2014*,metric=avg:bytes,split='response:500').bars().legend(ne)

screen shot 2017-01-05 at 7 14 27 pm

.es(index=logstash-2014*,metric=avg:bytes,split='response:500').bars().legend(ne).label('$1', '.*:(.*)>.*')

screen shot 2017-01-05 at 7 14 37 pm

All 4 comments

Are there really no tooltips in this thing? Kibana has them everywhere else - I feel like I'm missing something...

The timelion expression language, and the way you've thought this through is amazing - but the visualizations this thing produces are almost useless, because you can't hover over items to identify data point values. I spent the last couple of days getting ES5 set up with our data to use this tool, and now I need to set it aside, because these charts aren't going to give us what we need.

I'm happy to contribute if there's a task / PR somewhere for this! (I'm not seeing one)

i didn't realize that the legend is dynamically updated as you hover over time series data. that's an interesting approach - however it gets pretty hard to use when the series is split into many groups.

@zharben Yeah, the data point value is shown in the legend. I didn't notice this issue filed earlier, so I already started a discussion with another user around tooltips in https://github.com/elastic/kibana/issues/9746 -- I'll transfer your comments there.

@ghostinside Regarding ability to modify what is in the legend, that is possible using the .label() function. Specifically for split() function, I agree with you, this is useful. Here is an example. Does that help?

.es(index=logstash-2014*,metric=avg:bytes,split='response:500').bars().legend(ne)

screen shot 2017-01-05 at 7 14 27 pm

.es(index=logstash-2014*,metric=avg:bytes,split='response:500').bars().legend(ne).label('$1', '.*:(.*)>.*')

screen shot 2017-01-05 at 7 14 37 pm

In 6.1, Timelion has readout values of the data under the mouse-pointer (see comment here https://github.com/elastic/kibana/issues/9746#issuecomment-364537696).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LukeMathWalker picture LukeMathWalker  路  3Comments

MaartenUreel picture MaartenUreel  路  3Comments

Ginja picture Ginja  路  3Comments

timmolter picture timmolter  路  3Comments

stacey-gammon picture stacey-gammon  路  3Comments