<?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: Define specific Pie Chart colors by string field values in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55512#M2911</link>
    <description>&lt;P&gt;Hi,try this:&lt;/P&gt;

&lt;P&gt;1- order the results by severity. i.e. &lt;EM&gt;| order severity&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;2- use the seriesColors property to assign a color to each severity. You will have to write the colors in the same order as the severity values are listed in your results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.seriesColors"&amp;gt;[0xFF9900,0x00CC00]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3- get rid of "other" in pie chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if it works! Cheers,&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2013 14:15:01 GMT</pubDate>
    <dc:creator>davidcif</dc:creator>
    <dc:date>2013-07-26T14:15:01Z</dc:date>
    <item>
      <title>Define specific Pie Chart colors by string field values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55511#M2910</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="xxx" | eval severity= upper(severity) | stats count by severity
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works fine, and give us the results we need. Then we add it to a Dashboard, using a pie chart, so we get the distribution of events by severity, thats fine. The results table looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;severity    count
INFO        29
CONFIG      2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now the user asked us, to use specific colors for each severity value, for example use red color for "ERROR" events, yellow color for "INFO" events, and so on.&lt;/P&gt;

&lt;P&gt;I found this answer:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/58335/change-chart-bar-color-based-on-data-value"&gt;http://splunk-base.splunk.com/answers/58335/change-chart-bar-color-based-on-data-value&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But it appear that only works for colums chart, not for pie charts.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 08:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55511#M2910</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-06-05T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Define specific Pie Chart colors by string field values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55512#M2911</link>
      <description>&lt;P&gt;Hi,try this:&lt;/P&gt;

&lt;P&gt;1- order the results by severity. i.e. &lt;EM&gt;| order severity&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;2- use the seriesColors property to assign a color to each severity. You will have to write the colors in the same order as the severity values are listed in your results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.seriesColors"&amp;gt;[0xFF9900,0x00CC00]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3- get rid of "other" in pie chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if it works! Cheers,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 14:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55512#M2911</guid>
      <dc:creator>davidcif</dc:creator>
      <dc:date>2013-07-26T14:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Define specific Pie Chart colors by string field values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55513#M2912</link>
      <description>&lt;P&gt;but severity is a string value. Sorting would not solve the problem, wouldn't it?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 11:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55513#M2912</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2013-12-10T11:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Define specific Pie Chart colors by string field values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55514#M2913</link>
      <description>&lt;P&gt;The problem of this solution, is that you could not have events of all severities all times. Then if there are not events of one severity, the next ones will get undesired colors.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 12:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55514#M2913</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-12-10T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Define specific Pie Chart colors by string field values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55515#M2914</link>
      <description>&lt;P&gt;This one is working:&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/131726/status-codes-color-on-pie-chart"&gt;http://answers.splunk.com/answers/131726/status-codes-color-on-pie-chart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Define-specific-Pie-Chart-colors-by-string-field-values/m-p/55515#M2914</guid>
      <dc:creator>laristote</dc:creator>
      <dc:date>2014-08-22T12:34:23Z</dc:date>
    </item>
  </channel>
</rss>

