# Multiple lines in Vega

**URL:** <https://discuss.elastic.co/t/multiple-lines-in-vega/311603>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [August 7, 2022, 1:45pm UTC](https://discuss.elastic.co/t/multiple-lines-in-vega/311603 "2022-08-07T13:45:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itamar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar/32/109330_2.png) [@Itamar](https://discuss.elastic.co/u/Itamar)\
**Post date:** [August 7, 2022, 1:45pm UTC](https://discuss.elastic.co/t/multiple-lines-in-vega/311603/1 "2022-08-07T13:45:20Z")

</div>

I want to create a graph with multiple line like this:

 ![2](https://us1.discourse-cdn.com/elastic/original/3X/5/5/55862f39b6a70402eb6a86bfd2de8cbe30df33a4.png)

and the data set look like that:

```auto
"buckets": [
        {
          "key": 0,
          "height": {
            "buckets": [
              {
                "height_id": 20,
                "Yes/no_Choose": {
                  "buckets": [
                    {
                      "height_value": {
                        "value": 20
                      },
                      "yes/no": 0,
                    },
                    {
                      "height_value": {
                        "value": 40
                      },
                      "yes/no": 1
                    }
                  ]
                }
              }, and so on...

```

The data set have the X-axis- key  
so for each key in the data set there's a list of "height\_ID's" and for each of ID's there's a list of "yes/no" called "Yes/no\_Choose".  
and in each yes/no there's a value that presenting on the Y\_Axis.

I tried to find a way to show those 6 multiple lines, and link them to groups of "yes" and :no" but I had tough times with finding a way to do it.  
Is it even possible?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 12, 2022, 9:17pm UTC](https://discuss.elastic.co/t/multiple-lines-in-vega/311603/2 "2022-08-12T21:17:09Z")

</div>

@nyuriks

---

<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:** [September 9, 2022, 9:17pm UTC](https://discuss.elastic.co/t/multiple-lines-in-vega/311603/3 "2022-09-09T21:17:45Z")

</div>

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