<?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 Display data on single bar line in chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318861#M95347</link>
    <description>&lt;P&gt;I have some records in csv, each record has a column 'payment method'. I have to count by 'payment method' and the result should how in single line in chart&lt;BR /&gt;
Each color in chart represents a payment method&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="Expected"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2996iC0ED51434FF492AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expected" alt="Expected" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 05:17:36 GMT</pubDate>
    <dc:creator>rvisj</dc:creator>
    <dc:date>2017-05-26T05:17:36Z</dc:date>
    <item>
      <title>Display data on single bar line in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318861#M95347</link>
      <description>&lt;P&gt;I have some records in csv, each record has a column 'payment method'. I have to count by 'payment method' and the result should how in single line in chart&lt;BR /&gt;
Each color in chart represents a payment method&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="Expected"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2996iC0ED51434FF492AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expected" alt="Expected" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 05:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318861#M95347</guid>
      <dc:creator>rvisj</dc:creator>
      <dc:date>2017-05-26T05:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Display data on single bar line in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318862#M95348</link>
      <description>&lt;P&gt;hello @rvisj&lt;BR /&gt;
here i user an Instrumental Variable (&lt;CODE&gt;... | eval var=1&lt;/CODE&gt; )to use the chart command for the visualization you requested&lt;BR /&gt;
in screenshot 1 you will see the lookup i created.&lt;BR /&gt;
screenshot 2 has the search i used and bar chart&lt;BR /&gt;
heres the search:  &lt;CODE&gt;| inputlookup payments.csv  | eval var=1 | chart count(record)  over var by payment_method&lt;/CODE&gt;&lt;BR /&gt;
hope it helps&lt;BR /&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/2994iCDD7829EEE995C9F/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;&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/2995iCF71CD66D1E52AE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318862#M95348</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-26T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Display data on single bar line in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318863#M95349</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Base Search Here | eval label="Payment Methods" | contingency label "payment method" | search label!="TOTAL"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set the visualization to &lt;CODE&gt;Bar Chart&lt;/CODE&gt; and set the &lt;CODE&gt;Stack Mode&lt;/CODE&gt; to the one on the right (stacked).&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318863#M95349</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T14:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display data on single bar line in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318864#M95350</link>
      <description>&lt;P&gt;Working..thanks @adonio. Can we remover that 'var 1' label from Y-axis&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 06:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318864#M95350</guid>
      <dc:creator>rvisj</dc:creator>
      <dc:date>2017-05-29T06:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Display data on single bar line in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318865#M95351</link>
      <description>&lt;P&gt;thanks for your reply. I tried this but 'Total' is coming as a payment method and adding up in the chart&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 06:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318865#M95351</guid>
      <dc:creator>rvisj</dc:creator>
      <dc:date>2017-05-29T06:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display data on single bar line in chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318866#M95352</link>
      <description>&lt;P&gt;Also add &lt;CODE&gt;| fields - Total TOTAL&lt;/CODE&gt; to the end.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 15:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-data-on-single-bar-line-in-chart/m-p/318866#M95352</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-29T15:45:47Z</dc:date>
    </item>
  </channel>
</rss>

