# Line Chart with Y axis lines of field values

**URL:** https://discuss.elastic.co/t/line-chart-with-y-axis-lines-of-field-values/209683
**Category:** Kibana
**Created:** [November 27, 2019, 1:08pm UTC](https://discuss.elastic.co/t/line-chart-with-y-axis-lines-of-field-values/209683 "2019-11-27T13:08:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dennis\_Anagno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dennis_anagno/32/48742_2.png) [@Dennis\_Anagno](https://discuss.elastic.co/u/Dennis_Anagno)
#### Post date: [November 27, 2019, 1:08pm UTC](https://discuss.elastic.co/t/line-chart-with-y-axis-lines-of-field-values/209683/1 "2019-11-27T13:08:58Z")

</div>

Hi,

We have the following field data in our document :

```
            "_source": {
                "counter_name": "Counter_A1",
                "counter_value": 11,
                "group_name": "group1",
                "timestamp": "2019-11-26T11:45:01Z",
                "vnf_name": "vnf-09"
            },
           .......
            "_source": {
                "counter_name": "Counter_B1",
                "counter_value": 33,
                "group_name": "group1",
                "timestamp": "2019-11-26T11:45:01Z",
                "vnf_name": "vnf-01"
            },
           .......
           "_source": {
                "counter_name": "Counter_A1",
                "counter_value": 34
                "group_name": "group1",
                "timestamp": "2019-11-26T11:55:01Z",
                "vnf_name": "vnf-12"
            },

```

We are trying to make a Line Chart with Y axis the field values of _counter\_value_ ( number ) for each field value of _counter\_name_ and as X axis the _timestamp._

In .eg. like graph

Y axis has counter values of each counter name and X axis timestamp

 ![Desired%20Line%20Chart](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e5ddfe99296e877e2eed6b28784913f7d03e9535.png)

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [November 27, 2019, 8:21pm UTC](https://discuss.elastic.co/t/line-chart-with-y-axis-lines-of-field-values/209683/2 "2019-11-27T20:21:11Z")

</div>

You can build an aggregated visualization with most of the tools in Kibana. You would set the X axis to Date Histogram of timestamp, then Y axis to Average(counter\_value), then Split Series by Terms(counter\_name).

To see unaggregated data, you can use Canvas or Vega.

---

<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 25, 2019, 8:21pm UTC](https://discuss.elastic.co/t/line-chart-with-y-axis-lines-of-field-values/209683/3 "2019-12-25T20:21:14Z")

</div>

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