<?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 How to create different color pie charts with the same field? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416215#M27364</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Below is my requirement. I need to create pie chart with different colors as per attached SS. &lt;BR /&gt;
I searched a lot but not able to find the solution and Below code would not help for this scenario.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="charting.fieldColors"&amp;gt;{"Error: 0xE4002B, "Success": 0x3b7d3e}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&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/6906i715A3439F998658B/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;Could you please suggest me on this.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 15:39:07 GMT</pubDate>
    <dc:creator>dhirendra761</dc:creator>
    <dc:date>2019-04-15T15:39:07Z</dc:date>
    <item>
      <title>How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416215#M27364</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Below is my requirement. I need to create pie chart with different colors as per attached SS. &lt;BR /&gt;
I searched a lot but not able to find the solution and Below code would not help for this scenario.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="charting.fieldColors"&amp;gt;{"Error: 0xE4002B, "Success": 0x3b7d3e}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&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/6906i715A3439F998658B/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;Could you please suggest me on this.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 15:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416215#M27364</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2019-04-15T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416216#M27365</link>
      <description>&lt;P&gt;Is there something that differentiates each success? For instance, is A web server errors and successes and B is app server errors and successes, that kind of thing? Your picture looks like a trellis visualization. Does it have to be trellis, or could you have 6 different panels?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 16:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416216#M27365</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2019-04-15T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416217#M27366</link>
      <description>&lt;P&gt;Hi @efavreau  yes you are right I am using trails visualization &lt;CODE&gt;&amp;lt;option name="trellis.enabled"&amp;gt;1&amp;lt;/option&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
my SPL is  &lt;CODE&gt;base search | stats count(status) by server status&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 16:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416217#M27366</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2019-04-15T16:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416218#M27367</link>
      <description>&lt;P&gt;If you don't mind having "success" with an extra name on it, you can try this method:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval status="success", server="A" 
| append 
    [| makeresults 
    | eval status="success", server="B"]
| append 
    [| makeresults 
    | eval status="failure", server="A"]
| append 
    [| makeresults 
    | eval status="failure", server="B"]
| eval final_status=if(status="success", status." ".server, status)
| stats count by server final_status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically you have to make a new field that considers each type of success as its own category, but the failures as the same category. You can still trellis by server. And in the XML you can customize the colors by adding &lt;CODE&gt;&lt;BR /&gt;
        &amp;lt;option name="charting.fieldColors"&amp;gt;{"success A":#00ff00 ,"success B":#0000ff,"failure":#ff0000}&amp;lt;/option&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 20:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416218#M27367</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2019-04-15T20:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416219#M27368</link>
      <description>&lt;P&gt;Thanks for your suggesation @grittonc ...yes we can by this but it will differ from our requirement.&lt;BR /&gt;
Hi...@somesoni2  @woodcock @martin_mueller @niketnilay ...do you have any other suggestion please.&lt;/P&gt;

&lt;P&gt;Thanks you.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 07:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416219#M27368</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2019-04-16T07:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416220#M27369</link>
      <description>&lt;P&gt;I would use a trellis for this and live with everything being the same 2 colors.  Why in the world would you ever desire &lt;CODE&gt;success&lt;/CODE&gt; (or any value) to be multiple colors?  That seems crazy to me.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 12:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416220#M27369</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-16T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416221#M27370</link>
      <description>&lt;P&gt;ok understand .. I will follow the natural approach of splunk..and use the same colors for same result .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks @woodcock  for the suggation.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 12:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416221#M27370</guid>
      <dc:creator>dhirendra761</dc:creator>
      <dc:date>2019-04-16T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416222#M27371</link>
      <description>&lt;P&gt;This is the best that I could do but I'll bet that @niketnilay can do better.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416222#M27371</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-22T22:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create different color pie charts with the same field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416223#M27372</link>
      <description>&lt;P&gt;Actually instead of &lt;CODE&gt;success A&lt;/CODE&gt; and &lt;CODE&gt;success B&lt;/CODE&gt;, just use different numbers of leading spaces and use &lt;CODE&gt;success&lt;/CODE&gt;, &lt;CODE&gt;success&lt;/CODE&gt;, &lt;CODE&gt;success&lt;/CODE&gt;, &lt;CODE&gt;success&lt;/CODE&gt;, &lt;CODE&gt;success&lt;/CODE&gt;, &lt;CODE&gt;success&lt;/CODE&gt;.  The spaces will be invisible and you will have 100% of your request implemented!  GO TEAM!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-different-color-pie-charts-with-the-same-field/m-p/416223#M27372</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-22T22:51:23Z</dc:date>
    </item>
  </channel>
</rss>

