# How can i make stat panel value clickable

**URL:** <https://community.grafana.com/t/how-can-i-make-stat-panel-value-clickable/37377>\
**Category:** Grafana\
**Created:** [October 1, 2020, 8:04am UTC](https://community.grafana.com/t/how-can-i-make-stat-panel-value-clickable/37377 "2020-10-01T08:04:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iambazzy](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@iambazzy](https://community.grafana.com/u/iambazzy)\
**Post date:** [October 1, 2020, 8:04am UTC](https://community.grafana.com/t/how-can-i-make-stat-panel-value-clickable/37377/1 "2020-10-01T08:04:09Z")

</div>

my grafana dashboard is on community.grafana.com

I am using simple json data source. I am embedding panels in my webpage using an iframe which is on localhost:5000. The panels that i am embedding are (pie, graph, stat) so now let us say that I have a stat panel like this on my webpage (localhost:5000/dashboard) in iframe.

![Capture](https://us1.discourse-cdn.com/grafana/original/2X/3/33cd5ef1b7cd6ca8a51a61aec74203bcb25b46a1.png)

When the user clicks on the stat value which is (28). I want the user to be navigated to some route for example localhost:5000/details and then show a drilldown on that page for the selected value.

right now i am thinking to attach an eventListener to the value which after inspecting is a span tag. but i cant access the iframe contents because grafana dashboard and website reside on different domains.

How can i do this using grafana ?

---

<div class="post-metadata">

**Author:** ![anon90859526](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@anon90859526](https://community.grafana.com/u/anon90859526)\
**Post date:** [October 7, 2020, 2:46pm UTC](https://community.grafana.com/t/how-can-i-make-stat-panel-value-clickable/37377/2 "2020-10-07T14:46:50Z")

</div>

Seems like you might want a [data link](https://grafana.com/docs/grafana/latest/linking/data-links/) with some [data link variables](https://grafana.com/docs/grafana/latest/linking/data-link-variables/).
