<?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: Column Chart Legend always as count? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Column-Chart-Legend-always-as-count/m-p/302802#M3902</link>
    <description>&lt;P&gt;@wuming79, with your current query, protocol names are on x-axis. x-axis labels are not being shown in the visualization because there are too many of those you can try x-axis Label Rotation to -90° using Edit Format for the Column Chart. You can also try using Pie Chart as visualization for your data.&lt;/P&gt;

&lt;P&gt;Having said that you try the following &lt;CODE&gt;transpose&lt;/CODE&gt; command so that count takes x-axis and Protocol becomes legend.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| stats count by Protocol
| transpose 0 header_field="Protocol" column_name="Protocol"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Aug 2017 09:09:14 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-08-28T09:09:14Z</dc:date>
    <item>
      <title>Column Chart Legend always as count?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Column-Chart-Legend-always-as-count/m-p/302801#M3901</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to plot a bar chart to show the number of protocol scan in a network but my chart always shows my legend as count instead of protocol. How should I search so that the bar chart will show legend as many protocol and my column chart will see different colours for each different protocol?&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/3410i2628E150B428A42A/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>Mon, 28 Aug 2017 07:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Column-Chart-Legend-always-as-count/m-p/302801#M3901</guid>
      <dc:creator>wuming79</dc:creator>
      <dc:date>2017-08-28T07:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Column Chart Legend always as count?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Column-Chart-Legend-always-as-count/m-p/302802#M3902</link>
      <description>&lt;P&gt;@wuming79, with your current query, protocol names are on x-axis. x-axis labels are not being shown in the visualization because there are too many of those you can try x-axis Label Rotation to -90° using Edit Format for the Column Chart. You can also try using Pie Chart as visualization for your data.&lt;/P&gt;

&lt;P&gt;Having said that you try the following &lt;CODE&gt;transpose&lt;/CODE&gt; command so that count takes x-axis and Protocol becomes legend.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
| stats count by Protocol
| transpose 0 header_field="Protocol" column_name="Protocol"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Aug 2017 09:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Column-Chart-Legend-always-as-count/m-p/302802#M3902</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-28T09:09:14Z</dc:date>
    </item>
  </channel>
</rss>

