# Kinana 7.0 - how to create a histogram chart based on latest event in a httpsessionID

**URL:** <https://discuss.elastic.co/t/kinana-7-0-how-to-create-a-histogram-chart-based-on-latest-event-in-a-httpsessionid/208479>\
**Category:** Kibana\
**Created:** [November 19, 2019, 9:58am UTC](https://discuss.elastic.co/t/kinana-7-0-how-to-create-a-histogram-chart-based-on-latest-event-in-a-httpsessionid/208479 "2019-11-19T09:58:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alisongoryachev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alisongoryachev/32/111352_2.png) [@alisongoryachev](https://discuss.elastic.co/u/alisongoryachev)\
**Post date:** [November 21, 2019, 7:49pm UTC](https://discuss.elastic.co/t/kinana-7-0-how-to-create-a-histogram-chart-based-on-latest-event-in-a-httpsessionid/208479/2 "2019-11-21T19:49:13Z")

</div>

Hi @cheriemilk!

I will try to help here 🙂

On a pie chart, top hits aggregation only works with numbers. There is a [previous Discuss post](https://discuss.elastic.co/t/pie-chart-with-unique-count-and-bucket-aggregation-with-top-hit/178438/2) around a similar issue.

> To use it you have to first create buckets using split slices, and than use the top hit aggregation, that aggregate the top hit results, sorted by the second field on the editor, on each specific bucket with the specified aggregation function (sum, min, max, avg).

---

_[View the full topic](https://discuss.elastic.co/t/kinana-7-0-how-to-create-a-histogram-chart-based-on-latest-event-in-a-httpsessionid/208479)._
