# Line charts using timelion

**URL:** <https://discuss.elastic.co/t/line-charts-using-timelion/59356>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [August 30, 2016, 7:26pm UTC](https://discuss.elastic.co/t/line-charts-using-timelion/59356 "2016-08-30T19:26:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sridevibaskaran](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sridevibaskaran](https://discuss.elastic.co/u/sridevibaskaran)\
**Post date:** [August 30, 2016, 7:26pm UTC](https://discuss.elastic.co/t/line-charts-using-timelion/59356/1 "2016-08-30T19:26:59Z")

</div>

I have the following json fields in my elastic index CountDetails as shown below:

```
message:
{"File":"File1","Hour":"22","Count":"493"}
{"File":"File1","Hour":"23","Count":"32"}
{"File":"File3","Hour":"1","Count":"45"}

```

I am trying to plot a line chart with “Hour” in x axis and “Count” in y axis. Then for each File, I would like to see the count for every hour.

I understand that Kibana does not have a feature to achieve it now. So I downloaded the timelion plugin and tried using it. But not sure on what expression should i have to achieve the above line chart. And will the indexes in elasticsearch will be available in timelion?

Any help would be appreciated !!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2016, 5:04am UTC](https://discuss.elastic.co/t/line-charts-using-timelion/59356/2 "2016-08-31T05:04:59Z")

</div>

Please don't post the same thing multiple times 🙂

> [@Creating line charts using timelion](https://discuss.elastic.co/t/creating-line-charts-using-timelion/59348):
>
> I have the following json fields in my elastic index CountDetails as shown below: message: {"File":"File1","Hour":"22","Count":"493"} {"File":"File1","Hour":"23","Count":"32"} {"File":"File3","Hour":"1","Count":"45"} I am trying to plot a line chart with “Hour” in x axis and “Count” in y axis. Then for each File, I would like to see the count for every hour. I understand that Kibana does not have a feature to achieve it now. So I downloaded the timelion plugin and tried using it. But not sure…

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2016, 5:05am UTC](https://discuss.elastic.co/t/line-charts-using-timelion/59356/3 "2016-08-31T05:05:02Z")

</div>


