<?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: change color of column chart for each type? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245842#M73293</link>
    <description>&lt;P&gt;ya that is why i am trying to figure out can it be done or not&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 21:38:13 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2016-03-10T21:38:13Z</dc:date>
    <item>
      <title>change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245840#M73291</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/1133i6FC6128D84A90E47/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;Hello all , &lt;/P&gt;

&lt;P&gt;I ran the below query &lt;/P&gt;

&lt;P&gt;....| chart count by  SRC_ID &lt;/P&gt;

&lt;P&gt;which gives me the count for each SRC_ID . when the visualized it in a  column chart each id should have a different color &lt;/P&gt;

&lt;P&gt;example&lt;BR /&gt;&lt;BR /&gt;
:   SRC_ID        COUNT&lt;/P&gt;

&lt;P&gt;G                40&lt;BR /&gt;
  N                20&lt;/P&gt;

&lt;P&gt;each id should have a color.I tried using the below XML but it did not change&lt;BR /&gt;
option name="charting.fieldColors"&amp;gt;{"G":0xFF0000,"N":0x6699FF}`&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 21:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245840#M73291</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-03-10T21:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245841#M73292</link>
      <description>&lt;P&gt;You will get different colors for each SRC_ID for a different visualization like PIE. Why are you expecting column chart to have different colors..its not a normal behavior? Is that a requirement?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 21:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245841#M73292</guid>
      <dc:creator>menonmanish</dc:creator>
      <dc:date>2016-03-10T21:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245842#M73293</link>
      <description>&lt;P&gt;ya that is why i am trying to figure out can it be done or not&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 21:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245842#M73293</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-03-10T21:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245843#M73294</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval temp=1 | chart count over by SRC_ID limit=0 | rename temp as SRC_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The color code is assigned based of different series, your original search just have one series &lt;CODE&gt;count&lt;/CODE&gt;. Above search will give series for each SRC_ID value so each will have different color&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Update *&lt;/EM&gt;&lt;BR /&gt;
To retain the x-axis labels, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | chart count by SRC_ID | eval series=SRC_ID | chart values(count) over SRC_ID by series limit=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2016 21:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245843#M73294</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-10T21:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245844#M73295</link>
      <description>&lt;P&gt;well the color is changing but it messed up with the SRC_ID ,it is not showing the name of each id in the x-axis and its showing both ids count when hover on the bar&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 22:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245844#M73295</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-03-10T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245845#M73296</link>
      <description>&lt;P&gt;I tried the updated query &lt;/P&gt;

&lt;P&gt;| chart count by SRC_ID | eval series=SRC_ID | chart values(count) over SRC_ID by series limit=0 &lt;/P&gt;

&lt;P&gt;the output is &lt;/P&gt;

&lt;P&gt;SRC_ID       G        N            U&lt;/P&gt;

&lt;P&gt;G                  40&lt;BR /&gt;
 N                             20&lt;/P&gt;

&lt;P&gt;U                                          10&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245845#M73296</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2020-09-29T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245846#M73297</link>
      <description>&lt;P&gt;I have attached a screen shot to the question&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 23:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245846#M73297</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-03-10T23:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: change color of column chart for each type?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245847#M73298</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Test the following xml code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;my_title&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
   &amp;lt;panel&amp;gt;
&amp;lt;chart&amp;gt;
&amp;lt;title&amp;gt;Field colors example&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;
................................................ | chart count(eval(SRC_ID="G")) as ER   count(eval(SRC_ID="N")) as WA    count(eval(SRC_ID="U")) as INF  by  SRC_ID
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="charting.axisY.scale"&amp;gt;log&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.fieldColors"&amp;gt;
{"G": 0xFF0000, "N": 0xFF9900,"U": 0xFFAAF0}
&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
&amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Mar 2016 09:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/change-color-of-column-chart-for-each-type/m-p/245847#M73298</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-03-11T09:44:00Z</dc:date>
    </item>
  </channel>
</rss>

