<?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: How to Drilldown stacked column chart to a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454172#M166836</link>
    <description>&lt;P&gt;$click.name2$ should give you the results. Is your timechart command something like this...timechart count  by Sentiment, then $click.name2$ should give you value of Positive Negative Neutral&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 04:12:30 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-10-30T04:12:30Z</dc:date>
    <item>
      <title>How to Drilldown stacked column chart to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454169#M166833</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6015iA441DDC875F120B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I need to show a drilldown report when user clicks on any of the column bar. Each bar has 3 sentiments (Positive, Negative and Neutral). The field1 is time and field2 is Sentiment. If i use the below code &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;       &amp;lt;set token="selected.levels"&amp;gt;$click.name2$&amp;lt;/set&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It takes the fieldname "Sentiment", but not the clicked name (Expected value is either Positive, Negative or Neutral). How to get drilldown for this case?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454169#M166833</guid>
      <dc:creator>aravindpadmin</dc:creator>
      <dc:date>2018-10-29T06:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Drilldown stacked column chart to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454170#M166834</link>
      <description>&lt;P&gt;if you want the value of the click.name2 field use $click.value2$ which would hold your Positive, Negative or Neutral&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 18:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454170#M166834</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-10-29T18:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Drilldown stacked column chart to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454171#M166835</link>
      <description>&lt;P&gt;$click.value2$ gets count of Positive or Negative or Neutral. So above mentioned solution is not going to work.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 01:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454171#M166835</guid>
      <dc:creator>aravindpadmin</dc:creator>
      <dc:date>2018-10-30T01:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Drilldown stacked column chart to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454172#M166836</link>
      <description>&lt;P&gt;$click.name2$ should give you the results. Is your timechart command something like this...timechart count  by Sentiment, then $click.name2$ should give you value of Positive Negative Neutral&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 04:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454172#M166836</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-30T04:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Drilldown stacked column chart to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454173#M166837</link>
      <description>&lt;P&gt;@Vijeta , thanks for your response. $click.name2$ gives field name i.,e Sentiment. This Sentiment can be either Positive or Negative or Neutral. Any idea how to get these field's?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 05:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454173#M166837</guid>
      <dc:creator>aravindpadmin</dc:creator>
      <dc:date>2018-10-30T05:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Drilldown stacked column chart to a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454174#M166838</link>
      <description>&lt;P&gt;@aravindpadmin ,&lt;BR /&gt;
These are the tokens available for the chart - &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/PanelreferenceforSimplifiedXML#Predefined_drilldown_tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/PanelreferenceforSimplifiedXML#Predefined_drilldown_tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If click.name2 is not working for you, would you mind sharing the last part (chart part) of your search to see how you are plotting it.&lt;/P&gt;

&lt;P&gt;For e.g. In below stacked bar chart, click.name2 gives me sourcetype name.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$sourcetype$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_*|timechart span=5m count by sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.abbreviation"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.mode"&amp;gt;standard&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.lineWidth"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="sourcetype"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Oct 2018 06:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Drilldown-stacked-column-chart-to-a-table/m-p/454174#M166838</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-30T06:21:56Z</dc:date>
    </item>
  </channel>
</rss>

