<?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: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103313#M26698</link>
    <description>&lt;P&gt;Hi - how about if only a particular chart in a dashboard i want to disable the legend? thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 06:11:39 GMT</pubDate>
    <dc:creator>mrccasi</dc:creator>
    <dc:date>2018-05-10T06:11:39Z</dc:date>
    <item>
      <title>Can I Disable Chart Legend Drilldown - Keep Chart Cell Drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103305#M26690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have asked a similar question already but have not had an answer so I thought I would try again because I believe an answer to this issue could be useful to many users.&lt;/P&gt;
&lt;P&gt;The title says it all. We can drilldown on data from charts by clicking on a chart cell or by clicking on a chart legend. I want to keep the former (chart cell drilldown) whilst not being able to do the latter (chart legend drilldown). Is this possible?&lt;/P&gt;
&lt;P&gt;An answer to this would be a big winner.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 22:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103305#M26690</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2023-06-08T22:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103306#M26691</link>
      <description>&lt;P&gt;According to my knowledge of Highcharts, which is Splunk JS chart underlying graph library, clicking on the legend or the chart is controlled by the same property.&lt;/P&gt;

&lt;P&gt;So Highcharts cannot dissociate the 2 elements and therefore JS chart cannot defines different actions for legend and chart.&lt;/P&gt;

&lt;P&gt;I have no idea about FLashchart.&lt;/P&gt;

&lt;P&gt;In JS chart you could still have a graph with no legend with drilldown enabled and a masterlegend with no graph in another panel, with drilldown disabled, this should work, but I do not know it it fits in your needs.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 09:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103306#M26691</guid>
      <dc:creator>jleduc</dc:creator>
      <dc:date>2013-01-22T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103307#M26692</link>
      <description>&lt;P&gt;Resurrecting an old question but an important one for app developers.&lt;/P&gt;

&lt;P&gt;The answer is it depends.&lt;/P&gt;

&lt;P&gt;In 6.0 to 6.2, you can only really do this with custom JS extensions to SimpleXML. There is no built-in way to do it using only SimpleXML.  Assume you have a chart with the id &lt;CODE&gt;top_users&lt;/CODE&gt;. In JS, you use two event listeners to bypass the legend drilldown by only paying attention to the chart drilldown event. The code pattern looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
var chart_top_users = mvc.Components.getInstance("top_users");
chart_top_users.on("click", function(e) {
   e.preventDefault();
});
chart_top_users.on("click:chart", function(e) {
  // ... Do your chart drilldown actions ...
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In Splunk 6.3 and newer, you can use the new functionality in SimpleXML and the &lt;CODE&gt;condition&lt;/CODE&gt; elements to spy on the presence of the &lt;CODE&gt;row._span&lt;/CODE&gt; field for time-based charts.  For non time-based charts, I don't think there is a solution, but it is a little hard to see where there is much of a difference between the legend and the rows.  Anyway, returning to the code, the corresponding SimpleXML to spy on the &lt;CODE&gt;row._span&lt;/CODE&gt; field would look like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chart id="top_users"&amp;gt;
  &amp;lt;search&amp;gt;&amp;lt;query&amp;gt; ... .&amp;lt;/query&amp;gt;&amp;lt;/search&amp;gt;
  &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
  &amp;lt;drilldown target="_blank"&amp;gt;
    &amp;lt;condition match="isnotnull('row._span')"&amp;gt;
      &amp;lt;!-- Insert your chart drilldown logic ... --&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition&amp;gt;&amp;lt;/condition&amp;gt; 
  &amp;lt;/drilldown&amp;gt;
&amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If all else fails in SimpleXML, you can always use the SplunkJS approach. It is supported in all versions of Splunk 6.X.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 13:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103307#M26692</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-04-18T13:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103308#M26693</link>
      <description>&lt;P&gt;I am not sure if the SimpleXML method would work.&lt;/P&gt;

&lt;P&gt;According to the documentation &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/Viz/PanelreferenceforSimplifiedXML#condition_.28drilldown.29"&gt;here&lt;/A&gt; when it comes to drilldowns, the only attribute available for the  tag is field. The match attribute is only available for inputs&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103308#M26693</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2017-05-18T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103309#M26694</link>
      <description>&lt;P&gt;I promise you this works. It is in my apps running on 6.4 - 6.6.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103309#M26694</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-05-18T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103310#M26695</link>
      <description>&lt;P&gt;hi - how did you make it work? i am struggling on legend as well. thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 07:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103310#M26695</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2018-04-04T07:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103311#M26696</link>
      <description>&lt;P&gt;I make it work using the methods I posted in the answer. &lt;/P&gt;

&lt;P&gt;If you are doing a Splunk search like &lt;CODE&gt;timechart&lt;/CODE&gt; or &lt;CODE&gt;chart&lt;/CODE&gt; that produces a hidden row called &lt;CODE&gt;_span&lt;/CODE&gt;, then you can use the SimpleXML method I posted in the second part of my answer. You can also download my app (Layer8Insight App for Splunk, &lt;A href="https://splunkbase.splunk.com/app/3171/"&gt;https://splunkbase.splunk.com/app/3171/&lt;/A&gt;) and see the many places in XML where I use this method, such as the example below. The first condition triggers when the user clicks a series in the chart (not legend) and not labelled "OTHER'. The second condition is triggered if the user clicks "OTHER" in the chart (not legend), and the final empty &lt;CODE&gt;&amp;lt;condition&amp;gt;&lt;/CODE&gt; that does nothing will be hit if the user clicks on the legend.&lt;/P&gt;

&lt;P&gt;This app works on 6.4 and newer, so it does work for current versions of Splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="isnotnull('row._span') AND 'click.name2' != &amp;amp;quot;OTHER&amp;amp;quot;"&amp;gt;
            &amp;lt;eval token="form.dd_time.earliest"&amp;gt;$earliest$ - 2*$row._span$&amp;lt;/eval&amp;gt;
            &amp;lt;set token="form.dd_time.latest"&amp;gt;$latest$&amp;lt;/set&amp;gt;
            &amp;lt;set token="form.dd_filter_target_value"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
            &amp;lt;set token="set_dd_enabled"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition match="isnotnull('row._span')"&amp;gt;
            &amp;lt;eval token="form.dd_time.earliest"&amp;gt;$earliest$ - 2*$row._span$&amp;lt;/eval&amp;gt;
            &amp;lt;set token="form.dd_time.latest"&amp;gt;$latest$&amp;lt;/set&amp;gt;
            &amp;lt;set token="form.dd_filter_target_value"&amp;gt;*&amp;lt;/set&amp;gt;
            &amp;lt;set token="set_dd_enabled"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;&amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Apr 2018 10:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103311#M26696</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2018-04-07T10:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103312#M26697</link>
      <description>&lt;P&gt;Add the below row to your dashboards to disable drill-downs on legends&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row id="hidden_row"&amp;gt;
    &amp;lt;panel&amp;gt;
        &amp;lt;html&amp;gt;
            &amp;lt;style&amp;gt;
                .highcharts-legend-item:active {
                    pointer-events: none !important;
                }
                #hidden_row{
                     display:none !important;
                }
             &amp;lt;/style&amp;gt;
         &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above one is a per dashboard solution. If you want to disable legend-drilldown in all your dashboards..&lt;BR /&gt;
add a dashboard.css  to your apps /appserver/static/ path and add just the below css definition to that file..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.highcharts-legend-item:active {
    pointer-events: none !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to apply this for a specify pane, set ID for that panel and use that ID i your CSS selector like below..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel id="my_panel_id"&amp;gt;
     &amp;lt;!-- Your chart definition here --&amp;gt;
....
#my_panel_id .highcharts-legend-item:active {
        pointer-events: none !important;
    }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 07:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103312#M26697</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2018-04-09T07:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103313#M26698</link>
      <description>&lt;P&gt;Hi - how about if only a particular chart in a dashboard i want to disable the legend? thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 06:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103313#M26698</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2018-05-10T06:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103314#M26699</link>
      <description>&lt;P&gt;My answer above works for particular charts.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 10:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103314#M26699</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2018-05-10T10:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103315#M26700</link>
      <description>&lt;P&gt;Add ID attribute to your chart/panel  and then you can select like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#given_panel_id .highcharts-legend-item:active {
     pointer-events: none !important;
 }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 May 2018 10:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103315#M26700</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2018-05-10T10:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103316#M26701</link>
      <description>&lt;P&gt;hi rjthibod - thanks but it does not work for me since i have a scatter chart which is kinda have a messy click.values.&lt;/P&gt;

&lt;P&gt;thanks for sharing paramagurukarthikeyan! hope it works.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 02:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103316#M26701</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2018-05-11T02:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103317#M26702</link>
      <description>&lt;P&gt;it works thanks for your help paramagurukarthikeyan &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 02:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/103317#M26702</guid>
      <dc:creator>mrccasi</dc:creator>
      <dc:date>2018-05-11T02:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Chart Legend Drilldown - Keep Chart Cell Drilldown</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/646372#M223735</link>
      <description>&lt;P&gt;This css selector did not work for me using simple xml dashboard currently, but what did work is using this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Disable legend mouse cursor on hover*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.highcharts-a11y-proxy-button:hover&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cursor&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;default&lt;/SPAN&gt; &lt;SPAN&gt;!important&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* disable clicks*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.highcharts-a11y-proxy-button:active&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pointer-events&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;none&lt;/SPAN&gt; &lt;SPAN&gt;!important&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jun 2023 19:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-Disable-Chart-Legend-Drilldown-Keep-Chart-Cell-Drilldown/m-p/646372#M223735</guid>
      <dc:creator>rrossetti</dc:creator>
      <dc:date>2023-06-08T19:24:58Z</dc:date>
    </item>
  </channel>
</rss>

