# Squarewave type line graph

**URL:** <https://discuss.elastic.co/t/squarewave-type-line-graph/288917>\
**Category:** Kibana\
**Created:** [November 10, 2021, 5:54pm UTC](https://discuss.elastic.co/t/squarewave-type-line-graph/288917 "2021-11-10T17:54:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)\
**Post date:** [November 10, 2021, 5:54pm UTC](https://discuss.elastic.co/t/squarewave-type-line-graph/288917/1 "2021-11-10T17:54:08Z")

</div>

Using Stack 7.13.4  
I am plotting some binary data (e.g. oscillates between 0 and 1) and I want basically a square wave style graph.

I cannot get the transitions from 0 to 1 or from 1 to 0 to show a vertical line. I just see the horizontal lines at 0 or at 1.

Is it possible to get the transitions between 0 and 1 to show as vertical lines?

Thanks,

Michael

---

<div class="post-metadata">

**Author:** ![brianseeders](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brianseeders/32/84831_2.png) [@brianseeders](https://discuss.elastic.co/u/brianseeders)\
**Post date:** [November 10, 2021, 9:38pm UTC](https://discuss.elastic.co/t/squarewave-type-line-graph/288917/2 "2021-11-10T21:38:26Z")

</div>

Hey @mhare,

How are you creating your graph?

If I use a line graph in Visualize, with `Line mode: Stepped`, it does what you're describing.

My data set has more than just 0s and 1s, but, besides that, I think this is what you want to see.

 ![Screen Shot 2021-11-10 at 4.34.18 PM](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b8f476a65dfeba681e531e2fe5e43feb7054ec1.png)

Is this helpful?

Brian

---

<div class="post-metadata">

**Author:** ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)\
**Post date:** [November 11, 2021, 2:34am UTC](https://discuss.elastic.co/t/squarewave-type-line-graph/288917/3 "2021-11-11T02:34:41Z")

</div>

Interesting, I will give that a try  
Thanks!

---

<div class="post-metadata">

**Author:** ![mhare](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mhare/32/52213_2.png) [@mhare](https://discuss.elastic.co/u/mhare)\
**Post date:** [November 11, 2021, 3:59am UTC](https://discuss.elastic.co/t/squarewave-type-line-graph/288917/4 "2021-11-11T03:59:33Z")

</div>

OK, gave it a try. Had to use a TSVB to get the stepping function, but it is working!

Thank you for pointing me in the right direction!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 9, 2021, 3:59am UTC](https://discuss.elastic.co/t/squarewave-type-line-graph/288917/5 "2021-12-09T03:59:51Z")

</div>

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