# Kibana multiline chart from object

**URL:** https://discuss.elastic.co/t/kibana-multiline-chart-from-object/135146
**Category:** Kibana
**Created:** [June 8, 2018, 11:57am UTC](https://discuss.elastic.co/t/kibana-multiline-chart-from-object/135146 "2018-06-08T11:57:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![astropanic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astropanic/32/20726_2.png) [@astropanic](https://discuss.elastic.co/u/astropanic)
#### Post date: [June 8, 2018, 11:57am UTC](https://discuss.elastic.co/t/kibana-multiline-chart-from-object/135146/1 "2018-06-08T11:57:36Z")

</div>

I have a document like this

```
 "metrics": {
   "first-meaningful-paint": 4444.6596,
   "time-to-first-byte": 103.52200000000002
 }

```

How I should define a multiline chart, each line for one metric?

---

<div class="post-metadata">

### Author: ![topel](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@topel](https://discuss.elastic.co/u/topel)
#### Post date: [June 8, 2018, 1:11pm UTC](https://discuss.elastic.co/t/kibana-multiline-chart-from-object/135146/2 "2018-06-08T13:11:05Z")

</div>

Hi @astropanic do you seek advice on how to visualize it best or do you want to know how to use kibana to have it display two lines in one chart?

If it is the second one:  
Go open up a new visualization, choose basic charts -\> line, then pick a aggregation method (average/median..) that you want your values in the same bucket to be aggregated by and then pick `metrics.first-meaningful-paint` and also add a metric for `metrics.time-to-first-byte` . As the y axis you then probably want a date histogram.

If you want add a second y axis with a different scale afterwards under the `metrics & axis` option tab.

Hope this helps.

---

<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: [July 6, 2018, 1:11pm UTC](https://discuss.elastic.co/t/kibana-multiline-chart-from-object/135146/3 "2018-07-06T13:11:07Z")

</div>

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