# Plot Line Chart with Kibana Visualize

**URL:** https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301
**Category:** Kibana
**Created:** [April 24, 2018, 11:59am UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301 "2018-04-24T11:59:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AlexisC](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@AlexisC](https://discuss.elastic.co/u/AlexisC)
#### Post date: [April 24, 2018, 11:59am UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/1 "2018-04-24T11:59:42Z")

</div>

I want to plot a specific line chart with Kibana Visualize. My data looks like this

Timestamp / Value / Serie  
15000 / 5.0 / 1  
15500 / 12.5 / 1  
16000 / 23 / 1  
16500 / 16.2 / 2  
17000 / 14.9 / 2  
18000 / 4.6 / 3  
...  
On X axis, it will be the timestamp and on the Y axis, only the max value of each serie (here 23, 16.2 and 4.6). How can I plot this chart with Kibana?

Thanks for your help !

---

<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: [April 24, 2018, 2:51pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/2 "2018-04-24T14:51:30Z")

</div>

You should able to do it with a Line chart in Kibana.  
For the metric, select Max for the Value field.  
For the X-axis select: date histogram on the timestamp field.  
Then click on Add Buckets and select Split Series, using the terms aggregation on the Serie field.

This is an example that I just created. It shows max bytes for web requests, over time, on of the extensions listed in the legend.  
 ![sample](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac779e07446ca4c68f98bc4bedb97efc09599ef.png)

---

<div class="post-metadata">

### Author: ![AlexisC](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@AlexisC](https://discuss.elastic.co/u/AlexisC)
#### Post date: [April 24, 2018, 3:13pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/3 "2018-04-24T15:13:13Z")

</div>

By following your advice, I have the following line chart:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c4699a19c17087b442d0a913b1161230fe2911aa.PNG)

As you can see, there are several points for 1 serie (the serie 200,174,459 has 4 points for example). I want only the max value for the serie (only the point 126 for the serie 200,174,459). Is it possible ?

---

<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: [April 24, 2018, 3:15pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/4 "2018-04-24T15:15:40Z")

</div>

You should change the Interval in the Date Histogram to cover all the data in there. If you don't need the timestamp at all in the chart, I think just having a bar chart with each bar representing the max of each series would be more useful to you.

---

<div class="post-metadata">

### Author: ![AlexisC](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@AlexisC](https://discuss.elastic.co/u/AlexisC)
#### Post date: [April 25, 2018, 1:22pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/5 "2018-04-25T13:22:32Z")

</div>

I want to have the timestamp in the chart. By changing the Interval in the Date Histogram, I have only the max value of the serie plotted. OK  
But this max is not with the right timestamp: for example my maximum for the serie 200,174,459 is at 07h; by changing the Interval to 12h, this max will be plotted maybe at 0h =\> I want it to be plotted at 07h.

---

<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: [April 26, 2018, 2:06pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/6 "2018-04-26T14:06:42Z")

</div>

There is no way to change where it's plotted in the date histogram as the dot is put right in the middle of the bucket from the x-axis. But I think you should still be able to see the timestamp for max if you mouseover the point.

---

<div class="post-metadata">

### Author: ![AlexisC](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@AlexisC](https://discuss.elastic.co/u/AlexisC)
#### Post date: [April 26, 2018, 3:57pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/7 "2018-04-26T15:57:04Z")

</div>

Thanks for the information !

---

<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 24, 2018, 3:57pm UTC](https://discuss.elastic.co/t/plot-line-chart-with-kibana-visualize/129301/8 "2018-05-24T15:57:22Z")

</div>

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