# Get Tooltip Text From Bar Chart

**URL:** <https://forum.inductiveautomation.com/t/get-tooltip-text-from-bar-chart/11185>\
**Category:** General Discussion\
**Created:** [February 9, 2016, 10:57pm UTC](https://forum.inductiveautomation.com/t/get-tooltip-text-from-bar-chart/11185 "2016-02-09T22:57:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denji26](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/denji26/32/5805_2.png) [@denji26](https://forum.inductiveautomation.com/u/denji26)\
**Post date:** [February 9, 2016, 10:57pm UTC](https://forum.inductiveautomation.com/t/get-tooltip-text-from-bar-chart/11185/1 "2016-02-09T22:57:15Z")

</div>

I recently helped a colleague get the tool tip text from a bar chart so he could display it in another component. I thought I would post what I did in case it could help anyone else in the future. It turned out to be quite simple:

entity = event.source.getEntityForPoint(event.x, event.y)

category = entity.rowKey  
series = entity.columnKey  
value = entity.dataset.getValue(entity.rowKey, entity.columnKey)

I used this on the mouseClicked and mouseMoved events on the Bar Chart.

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://forum.inductiveautomation.com/u/David)\
**Post date:** [July 8, 2016, 8:25pm UTC](https://forum.inductiveautomation.com/t/get-tooltip-text-from-bar-chart/11185/2 "2016-07-08T20:25:42Z")

</div>

like most things, it’s only easy when you know how! ![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")
