<?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 Status codes color on Pie chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131851#M44413</link>
    <description>&lt;P&gt;Hi-&lt;/P&gt;

&lt;P&gt;I have a pie chart in my dashboard and I want to put specific color for a specific webservers status codes (202, 404, 502, etc).I tried the below xml parameters but the color is still randomly changing. This is the input that I want  for 200 = green, 302=blue , 301 = blue , 404 = yellow and 502 = red. I also tried several suggestions found on this Splunk answers forum but to no avail.Please advise.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;searchString&amp;gt;sourcetyphart&amp;gt;
            &amp;lt;searchString&amp;gt;sourcetype="access_combined_wcookie" host=*crdd* uri=/mpd* | stats count by status&amp;lt;/searchString&amp;gt;
      &amp;lt;title&amp;gt;Status Code Summary (All Web Requests) - Last 60 min&amp;lt;/title&amp;gt;
      &amp;lt;earliestTime&amp;gt;-60m&amp;lt;/earliestTime&amp;gt;
      &amp;lt;latestTime&amp;gt;@m&amp;lt;/latestTime&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
      &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
      &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
     &amp;lt;option name="charting.chart.rangeValues"&amp;gt;[202,502,302,404]&amp;lt;/option&amp;gt;
     &amp;lt;option name="charting.seriesColors"&amp;gt;[0xbf3030,0x84e900,0x84e900,0xffe800]&amp;lt;/option&amp;gt;
     &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0&amp;lt;/option&amp;gt;
     &amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Apr 2014 04:11:57 GMT</pubDate>
    <dc:creator>Isaias_Garcia</dc:creator>
    <dc:date>2014-04-15T04:11:57Z</dc:date>
    <item>
      <title>Status codes color on Pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131851#M44413</link>
      <description>&lt;P&gt;Hi-&lt;/P&gt;

&lt;P&gt;I have a pie chart in my dashboard and I want to put specific color for a specific webservers status codes (202, 404, 502, etc).I tried the below xml parameters but the color is still randomly changing. This is the input that I want  for 200 = green, 302=blue , 301 = blue , 404 = yellow and 502 = red. I also tried several suggestions found on this Splunk answers forum but to no avail.Please advise.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;searchString&amp;gt;sourcetyphart&amp;gt;
            &amp;lt;searchString&amp;gt;sourcetype="access_combined_wcookie" host=*crdd* uri=/mpd* | stats count by status&amp;lt;/searchString&amp;gt;
      &amp;lt;title&amp;gt;Status Code Summary (All Web Requests) - Last 60 min&amp;lt;/title&amp;gt;
      &amp;lt;earliestTime&amp;gt;-60m&amp;lt;/earliestTime&amp;gt;
      &amp;lt;latestTime&amp;gt;@m&amp;lt;/latestTime&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
      &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
      &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
     &amp;lt;option name="charting.chart.rangeValues"&amp;gt;[202,502,302,404]&amp;lt;/option&amp;gt;
     &amp;lt;option name="charting.seriesColors"&amp;gt;[0xbf3030,0x84e900,0x84e900,0xffe800]&amp;lt;/option&amp;gt;
     &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0&amp;lt;/option&amp;gt;
     &amp;lt;/chart&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Apr 2014 04:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131851#M44413</guid>
      <dc:creator>Isaias_Garcia</dc:creator>
      <dc:date>2014-04-15T04:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes color on Pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131852#M44414</link>
      <description>&lt;P&gt;Is that XML code the one you use or did you made a copy/paste error?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 05:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131852#M44414</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-15T05:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes color on Pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131853#M44415</link>
      <description>&lt;P&gt;That's the one I used.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 06:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131853#M44415</guid>
      <dc:creator>Isaias_Garcia</dc:creator>
      <dc:date>2014-04-15T06:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes color on Pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131854#M44416</link>
      <description>&lt;P&gt;You can define colors per field value like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;&lt;BR /&gt;
  &amp;lt;row&amp;gt;&lt;BR /&gt;
    &amp;lt;chart&amp;gt;&lt;BR /&gt;
      &amp;lt;searchString&amp;gt;index=_internal source=*access* | chart count by status&amp;lt;/searchString&amp;gt;&lt;BR /&gt;
      &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;&lt;BR /&gt;
      &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;&lt;BR /&gt;
      &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;&lt;BR /&gt;
      &amp;lt;option name="charting.fieldColors"&amp;gt;{200:0x00ff00,201:0x33ff00,204:0x66ff00,303:0xffaa00,304:0xffff00,404:0xff0000}&amp;lt;/option&amp;gt;&lt;BR /&gt;
    &amp;lt;/chart&amp;gt;&lt;BR /&gt;
  &amp;lt;/row&amp;gt;&lt;BR /&gt;
&amp;lt;/dashboard&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 08:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131854#M44416</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-15T08:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes color on Pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131855#M44417</link>
      <description>&lt;P&gt;This worked for me - I had to enclose the field value in double quotes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;option name="charting.fieldColors"&amp;gt;{"404": 0xFF0000, "200": 0x84E900}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Feb 2015 22:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131855#M44417</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2015-02-11T22:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Status codes color on Pie chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131856#M44418</link>
      <description>&lt;P&gt;the_wolverine has the best answer. This assigns a specific color for a specific value.  For anyone with the same problem as me that if you have for example "low", "medium", "high" values and you want to color them in green, yellow, red then this will assign the correct color every time! All other answers will color medium as green if there are no low value for example! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;  &lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Status-codes-color-on-Pie-chart/m-p/131856#M44418</guid>
      <dc:creator>external_alien_</dc:creator>
      <dc:date>2016-08-25T13:26:22Z</dc:date>
    </item>
  </channel>
</rss>

