# Can you have a date histogram graph with multiple lines using multiple timestamp fields?

**URL:** <https://discuss.elastic.co/t/can-you-have-a-date-histogram-graph-with-multiple-lines-using-multiple-timestamp-fields/359351>\
**Category:** Kibana\
**Created:** [May 13, 2024, 8:06am UTC](https://discuss.elastic.co/t/can-you-have-a-date-histogram-graph-with-multiple-lines-using-multiple-timestamp-fields/359351 "2024-05-13T08:06:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankh](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@ankh](https://discuss.elastic.co/u/ankh)\
**Post date:** [May 13, 2024, 8:06am UTC](https://discuss.elastic.co/t/can-you-have-a-date-histogram-graph-with-multiple-lines-using-multiple-timestamp-fields/359351/1 "2024-05-13T08:06:49Z")

</div>

I have an index which contains a number of timestamp fields, eg:

```
{
  "docId": 1,
  "action1Timestamp": "2024-01-01T00:00:00.100Z",
  "action2Timestamp": "2024-01-02T00:00:00.100Z",
  "action3Timestamp": "2024-01-03T00:00:00.100Z"
}

{
  "docId": 2,
  "action1Timestamp": "2024-01-01T00:00:00.100Z",
  "action2Timestamp": "2024-01-01T00:00:00.200Z",
  "action3Timestamp": "2024-01-05T00:00:00.100Z"
}

etc

```

I would like to visualise the date histograms of each of these timestamps as lines on a single chart. The time range of these fields is more or less the same. So I want to be able to see a line for action1Timestamp, another for action2Timestamp, etc.

When I try to work out how to do this, I can only seem to specify one of the fields in the histogram.

Is it possible to do what I want somehow?

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [May 15, 2024, 3:50pm UTC](https://discuss.elastic.co/t/can-you-have-a-date-histogram-graph-with-multiple-lines-using-multiple-timestamp-fields/359351/2 "2024-05-15T15:50:14Z")

</div>

Hi @ankh

it should be possible with Lens.  
You can create a layer with a date histogram for each field, then use a `Count` operation. Then pick the `Line chart` as chart type.
