Simple on/off graph? #9588
-
I have some embedded devices that send data to elasticsearch when they're turned on (1) and off (0). I'd like to visualize this in some way that clearly shows the duration of time when they're on. What I have below works for showing dots at the times when they're turned on and off. If I switch to an area chart I almost get what I want, except the connections from 1 to 0 are downward sloping lines. I'd like these lines to remain horizontal from 1 and then drop straight down to 0 at 0. Hope this makes sense. Anyone have any ideas on how to achieve this? Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @nalcabio-tom , ![]() I think you're looking to set a custom As a side note, the spec you pasted references Vega-Lite 2, which is no longer maintained. You may want to double check what version of Vega is used on your Kibana instance, as the latest version seems to be using Vega-Lite 5. |
Beta Was this translation helpful? Give feedback.
Hi @nalcabio-tom ,
Editor with minimal example
I think you're looking to set a custom
interpolate
setting, it works with both line and area marks. Will this work for you?As a side note, the spec you pasted references Vega-Lite 2, which is no longer maintained. You may want to double check what version of Vega is used on your Kibana instance, as the latest version seems to be using Vega-Lite 5.