# Draw series from object

**URL:** <https://discuss.elastic.co/t/draw-series-from-object/82124>\
**Category:** Kibana\
**Created:** [April 12, 2017, 9:24am UTC](https://discuss.elastic.co/t/draw-series-from-object/82124 "2017-04-12T09:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlosvega](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlosvega/32/28433_2.png) [@carlosvega](https://discuss.elastic.co/u/carlosvega)\
**Post date:** [April 12, 2017, 9:24am UTC](https://discuss.elastic.co/t/draw-series-from-object/82124/1 "2017-04-12T09:24:56Z")

</div>

Hi, 🙂  
From this kind of structure with nested fields, how could I draw multiple series? I can't split per key in bps using the visualizations of kibana 4.x.

{  
timestamp: 1491988841000,  
ip: "192.168.1.1",  
bps: {  
"eth0" : 1000,  
"eth1" : 2000,  
"eth2" : 3000,  
}  
}

I would like to draw a chart with n series, one for each key in the bps object, using the value for the Y axis.  
If this is not the proper way to do this, what is the best approach in order to avoid having a document per interface like the following?

{  
timestamp: 1491988841000,  
ip: "192.168.1.1",  
interface: "eth0",  
bps: 1000  
}

{  
timestamp: 1491988841000,  
ip: "192.168.1.1",  
interface: "eth1",  
bps: 2000  
}

{  
timestamp: 1491988841000,  
ip: "192.168.1.1",  
interface: "eth2",  
bps: 3000  
}

Thanks in advance, 🙂

---

<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:** [April 12, 2017, 6:26pm UTC](https://discuss.elastic.co/t/draw-series-from-object/82124/2 "2017-04-12T18:26:37Z")

</div>

Hey @carlosvega, unfortunately we don't have a way to create visualizations based off of nested data at this time. Our general recommendation is to denormalize the documents on ingest, before putting them into Elasticsearch so they are separate documents and you can then create the visualizations.

---

<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:** [May 10, 2017, 6:38pm UTC](https://discuss.elastic.co/t/draw-series-from-object/82124/3 "2017-05-10T18:38:02Z")

</div>

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