Dashboards & Visualizations

Display table when chart is clicked

deepak02
Path Finder

Hi,

I have a dashboard (simple xml) which consists of 2 panels.

When I click on the first panel in the page, I want a table to be displayed under it.

What code should I do?

Both the behaviors are displayed in the screenshot I attached.
alt text
Thanks,
Deepak

Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi deepak02,
in Splunk 6.X Dashboard Example App (https://splunkbase.splunk.com/app/1603/) there is an example for you (Contextual Drilldown).
Bye.
Giuseppe

0 Karma

cmerriman
Super Champion

here is a doc on drilldowns:
http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Predefined_tokens_for_dynamic_drilldow...
if you want the table to populate based on what you click, you'll want to set it to

    <drilldown>
       <set token="showtable">$click.value$</set>
    </drilldown>
...
<panel depends="$showtable$">

and then you'll want to use that token in the table syntax to limit the values

0 Karma

andrey2007
Contributor

Hello, deepak02

You should use tokens

  1. set token in table from which you pass token like this

    <drilldown>
    <set token="open_table">$row.field1$</set>
    </drilldown>

  2. add depends option to panel which you would like to show

    <panel depends="$open_table$">

Please mark answer if it was useful!

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...