# Drill Down in bar graph

**URL:** <https://community.grafana.com/t/drill-down-in-bar-graph/70193>\
**Category:** Data Links\
**Created:** [August 9, 2022, 10:02am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193 "2022-08-09T10:02:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anderseriksen02](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anderseriksen02](https://community.grafana.com/u/anderseriksen02)\
**Post date:** [August 9, 2022, 10:02am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/1 "2022-08-09T10:02:14Z")

</div>

I would like to create a drill down in my bar chart, so I could click on the individual bars, and be sent to a new site with a variable set to the name of the bar;

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/9/0/9092ea3d13ab79fce79e1880c3696ea303d014ec.png)  
Here’s an image of the bar graph. What I want is to be able to insert for example node-test-100 in a link when I click on the far left bar. Is this possible?

---

<div class="post-metadata">

**Author:** ![alexandrearmand](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alexandrearmand](https://community.grafana.com/u/alexandrearmand)\
**Post date:** [August 9, 2022, 10:20am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/2 "2022-08-09T10:20:42Z")

</div>

i think you can do that using datalink options

> **[Configure data links | Grafana documentation](https://grafana.com/docs/grafana/next/panels-visualizations/configure-data-links/)**
>
> Configure data links You can use data link variables or data links to create links between panels.
> Data link variables You can use variables in data links to refer to series fields, labels, and values. For more information about data links, refer to...

quick example of use from me  
in my case i have to do it with override option to be able to target specific table column “id” reference of ticket. i use it in link to redirect to ticketing tool

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/b/5b2f162c30ceea75d2c8146219a0622cee86c9ad.png)

use data value like in the doc :

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/3/8/38f2ae607e43f73af37d63403dc0023864695f0b.png)

hope it’s help

---

<div class="post-metadata">

**Author:** ![anderseriksen02](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anderseriksen02](https://community.grafana.com/u/anderseriksen02)\
**Post date:** [August 9, 2022, 10:24am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/3 "2022-08-09T10:24:00Z")

</div>

It doesn’t seem to work, but thanks for the attempt!

---

<div class="post-metadata">

**Author:** ![alexandrearmand](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alexandrearmand](https://community.grafana.com/u/alexandrearmand)\
**Post date:** [August 9, 2022, 10:26am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/4 "2022-08-09T10:26:24Z")

</div>

why not ? this is the only way to do datalink i believe, share me your result if you want more guiding on this.

---

<div class="post-metadata">

**Author:** ![anderseriksen02](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anderseriksen02](https://community.grafana.com/u/anderseriksen02)\
**Post date:** [August 9, 2022, 10:30am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/5 "2022-08-09T10:30:55Z")

</div>

Sure thing!  
This is the override I added;  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/b/1/b1a127cae2688b07c321104a629369a06c5f8e50.png)

This is how it’s written in the SQL query;  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/8/b/8b22db7752ecb9d6e0305b79843212f6e1331404.png)

And this is how it’s shown;

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/e/6/e6c95029e59063a5c479dad657d7788054c2e918.png)

Where would the link be?

---

<div class="post-metadata">

**Author:** ![alexandrearmand](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alexandrearmand](https://community.grafana.com/u/alexandrearmand)\
**Post date:** [August 9, 2022, 10:45am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/6 "2022-08-09T10:45:36Z")

</div>

on hover and click you should see something like that on your graph bar like this

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/c/3/c371e58a1ac86cf133418a13f5a309869e63e664.png)

what is grafana version ? do you using timeseries panel or barchart panel?

---

<div class="post-metadata">

**Author:** ![anderseriksen02](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anderseriksen02](https://community.grafana.com/u/anderseriksen02)\
**Post date:** [August 11, 2022, 7:33am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/7 "2022-08-11T07:33:40Z")

</div>

I’m using a barchart panel. Should I be using timeseries?

---

<div class="post-metadata">

**Author:** ![alexandrearmand](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alexandrearmand](https://community.grafana.com/u/alexandrearmand)\
**Post date:** [August 11, 2022, 8:16am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/8 "2022-08-11T08:16:12Z")

</div>

no no my example is with Bar chart, did you find the option ?  
as you can see on my screenshot i was able to make the link you can see it in the hover mouse information.

---

<div class="post-metadata">

**Author:** ![anderseriksen02](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anderseriksen02](https://community.grafana.com/u/anderseriksen02)\
**Post date:** [August 11, 2022, 8:19am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/9 "2022-08-11T08:19:48Z")

</div>

Yeah, for some reason it doesn’t work for me. My company might be using a older version of grafana?

---

<div class="post-metadata">

**Author:** ![alexandrearmand](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alexandrearmand](https://community.grafana.com/u/alexandrearmand)\
**Post date:** [August 11, 2022, 8:23am UTC](https://community.grafana.com/t/drill-down-in-bar-graph/70193/10 "2022-08-11T08:23:45Z")

</div>

maybe that’s why i ask , you can see it on your profile button on bottom left.  
would you try with a simpler example ? you can use dummy data source like me “TestData DB” , this is a special data source (built-in) made for that.
