<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display table when chart is clicked in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328503#M39508</link>
    <description>&lt;P&gt;Hi  deepak02,&lt;BR /&gt;
in Splunk 6.X Dashboard Example App (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) there is an example for you (Contextual Drilldown).&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 14:56:00 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-04-12T14:56:00Z</dc:date>
    <item>
      <title>Display table when chart is clicked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328500#M39505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a dashboard (simple xml) which consists of 2 panels.&lt;/P&gt;

&lt;P&gt;When I click on the first panel in the page, I want a table to be displayed under it.&lt;/P&gt;

&lt;P&gt;What code should I do?&lt;/P&gt;

&lt;P&gt;Both the behaviors are displayed in the screenshot I attached.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2760i69EE70F97FF0DD2C/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Deepak&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328500#M39505</guid>
      <dc:creator>deepak02</dc:creator>
      <dc:date>2017-04-12T14:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display table when chart is clicked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328501#M39506</link>
      <description>&lt;P&gt;Hello, deepak02&lt;/P&gt;

&lt;P&gt;You should use tokens&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;set token in table from which you pass token like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;
&amp;lt;set token="open_table"&amp;gt;$row.field1$&amp;lt;/set&amp;gt;&lt;BR /&gt;
&amp;lt;/drilldown&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;add depends option to panel which you would like to show&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;panel depends="$open_table$"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Please mark answer if it was useful!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328501#M39506</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2017-04-12T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Display table when chart is clicked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328502#M39507</link>
      <description>&lt;P&gt;here is a doc on drilldowns:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Predefined_tokens_for_dynamic_drilldown"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Predefined_tokens_for_dynamic_drilldown&lt;/A&gt;&lt;BR /&gt;
if you want the table to populate based on what you click, you'll want to set it to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
       &amp;lt;set token="showtable"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
    &amp;lt;/drilldown&amp;gt;
...
&amp;lt;panel depends="$showtable$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then you'll want to use that token in the table syntax to limit the values&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328502#M39507</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-04-12T14:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Display table when chart is clicked</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328503#M39508</link>
      <description>&lt;P&gt;Hi  deepak02,&lt;BR /&gt;
in Splunk 6.X Dashboard Example App (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) there is an example for you (Contextual Drilldown).&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-table-when-chart-is-clicked/m-p/328503#M39508</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-04-12T14:56:00Z</dc:date>
    </item>
  </channel>
</rss>

