Adding label for different parts of timelion

I am using .min method in kibana timelion. My string is something like this:
.es().bars(stack=false).color(#F44336), .min(.es(), 25).bars(stack=false).color(#8BC34A)
This is taken from

Now, I am able to create this graph but unable to label the 2 parts correctly.

Also, if I use .label('my label') it only works for the green part, not the red part.
I want to label both of them individually.

I have not experimented much with labels in Timelion, but I can cross link to a post which explains generation of Timelion labels dynamically .. hope this helps,


Thank you!!
That is useful, but not in my case. I ended up creating the same graph with a different approach. I used .if() clauses for creating graphs.

Am glad your solution worked for your case. Thanks for sharing.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.