<?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: How to customize assigned colors with dynamic labels from a pie chart? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284386#M17952</link>
    <description>&lt;P&gt;I had a same problem and realized wildcard * won't work in charting.fieldColors.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Apr 2017 11:10:10 GMT</pubDate>
    <dc:creator>shuta1981</dc:creator>
    <dc:date>2017-04-08T11:10:10Z</dc:date>
    <item>
      <title>How to customize assigned colors with dynamic labels from a pie chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284384#M17950</link>
      <description>&lt;P&gt;I don't have any problems to show the pie chart with assigned colors with the fixed labels by just adding the following line to the Simple XML:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;{"P1":0xFFC000,"P2":0x000000,"P3":0x92D050,"P4":0x7030A0,"P5":0xFF0000}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, labels are changed by concatenated with count and percentage, for instance, "P1" is now changed to "P1 (count:12, perc: 24%)".  I tried using wildcard such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;{"P1*":0xFFC000,"P2*":0x000000,"P3*":0x92D050,"P4*":0x7030A0,"P5*":0xFF0000}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it doesn't work. Does anyone have any clues?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 18:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284384#M17950</guid>
      <dc:creator>splunkrocks2014</dc:creator>
      <dc:date>2016-10-28T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize assigned colors with dynamic labels from a pie chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284385#M17951</link>
      <description>&lt;P&gt;Try the below code. However, this only works as long as filtering is not used. If filtering is used, color for a particular label will be different depending on how you filter. &lt;/P&gt;

&lt;P&gt;["P1*", "P2*", "P3*", "P4*", "P5*"]&lt;BR /&gt;&lt;BR /&gt;
[0xFFC000, 0x000000, 0x92D050, 0x7030A0, 0xFF0000]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284385#M17951</guid>
      <dc:creator>shuta1981</dc:creator>
      <dc:date>2020-09-29T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize assigned colors with dynamic labels from a pie chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284386#M17952</link>
      <description>&lt;P&gt;I had a same problem and realized wildcard * won't work in charting.fieldColors.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 11:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284386#M17952</guid>
      <dc:creator>shuta1981</dc:creator>
      <dc:date>2017-04-08T11:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize assigned colors with dynamic labels from a pie chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284387#M17953</link>
      <description>&lt;P&gt;@splunkrocks2014... You can use charting.seriesColors to define 5 series colors. Since your fieldnames would still be in the same sequence i.e. P1,P2,P3 etc... All you need to make sure is that any series data which is not present should be 0 so that next series does not pick the missing field color. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="charting.seriesColors"&amp;gt;[0xFFC000,0x000000,0x92D050,0x7030A0,0xFF0000]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Apr 2017 13:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284387#M17953</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-08T13:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize assigned colors with dynamic labels from a pie chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284388#M17954</link>
      <description>&lt;P&gt;@shuta1981... Can you also try charting.seriesColors instead of charting.fieldColors?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 13:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/284388#M17954</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-08T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize assigned colors with dynamic labels from a pie chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/517202#M34636</link>
      <description>&lt;P&gt;I'd like to be able to do this too. Did anyone ever find a solution?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 10:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-assigned-colors-with-dynamic-labels-from-a-pie/m-p/517202#M34636</guid>
      <dc:creator>benhooper</dc:creator>
      <dc:date>2020-09-01T10:02:53Z</dc:date>
    </item>
  </channel>
</rss>

