# Vega lite boxplot

**URL:** <https://discuss.elastic.co/t/vega-lite-boxplot/150434>\
**Category:** Kibana\
**Created:** [September 29, 2018, 3:42pm UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434 "2018-09-29T15:42:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrsuh13](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@andrsuh13](https://discuss.elastic.co/u/andrsuh13)\
**Post date:** [September 29, 2018, 3:42pm UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434/1 "2018-09-29T15:42:45Z")

</div>

Hello!

I want to create a box plot that shows how the duration of performing of certain REST endpoint had been distributed in some time period. I would like to have many boxes - one for example for 10 minutes.

I push information about REST endpoint every 3 seconds. Here is example of such data. Foe example information about the /books endpoint. Total number of invocations in time period (3s), mean execution time and so on.

```
    {
      "_index": "metrics-2018-09",
      "_type": "doc",
      "_id": "LBIqIWYBcLDRF6t2O8JR",
      "_version": 1,
      "_score": null,
      "_source": {
        "@timestamp": "2018-09-28T17:11:47.751Z",
        "name": "http_server_requests",
        "type": "timer",
        "exception": "None",
        "method": "GET",
        "status": "200",
        "uri": "/books",
        "count": 0,
        "sum": 0,
        "mean": 0,
        "max": 0
      },
      "fields": {
        "@timestamp": [
          "2018-09-28T17:11:47.751Z"
        ]
      },
      "highlight": {
        "uri": [
          "/@kibana-highlighted-field@books@/kibana-highlighted-field@"
        ]
      },
      "sort": [
        1538154707751
      ]
    }

```

How can I create a box plot for It?

When I try to type "mark": "boxplot" Kibana says: "Invalid mark type "boxplot""

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [October 1, 2018, 5:49pm UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434/2 "2018-10-01T17:49:49Z")

</div>

Hey @andrsuh13 the boxplot mark is being added as part of vega-lite 3.0, and we're currently running version 2.4 in Kibana.

---

<div class="post-metadata">

**Author:** ![andrsuh13](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@andrsuh13](https://discuss.elastic.co/u/andrsuh13)\
**Post date:** [October 2, 2018, 8:28am UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434/3 "2018-10-02T08:28:07Z")

</div>

Oh, ok.. Thank you! Would you recommend some chart with a similar sense? Or some other approach?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [October 2, 2018, 8:58pm UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434/4 "2018-10-02T20:58:39Z")

</div>

@andrsuh13 I'm not aware of an alternative at this point, outside of writing your own plugin (which is a considerable amount of work). Once Vega 3.0 leaves beta, I'd suggest opening up an Issue [here](https://github.com/elastic/kibana/issues/new/choose) to get the library upgraded.

---

<div class="post-metadata">

**Author:** ![andrsuh13](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@andrsuh13](https://discuss.elastic.co/u/andrsuh13)\
**Post date:** [October 3, 2018, 9:30am UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434/5 "2018-10-03T09:30:26Z")

</div>

Ok, Thank you

---

<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:** [October 31, 2018, 9:30am UTC](https://discuss.elastic.co/t/vega-lite-boxplot/150434/6 "2018-10-31T09:30:36Z")

</div>

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