<?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: Colouring Piecharts created using JSChart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100366#M5558</link>
    <description>&lt;P&gt;The problem with my query is that Of the three fields I have (Pass, Failed, Uncovered), they may not all be present. When pass is not present, then failed label will receive the first color.&lt;/P&gt;

&lt;P&gt;The legend.labels does not change this fact.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2013 16:25:05 GMT</pubDate>
    <dc:creator>cmak</dc:creator>
    <dc:date>2013-04-22T16:25:05Z</dc:date>
    <item>
      <title>Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100364#M5556</link>
      <description>&lt;P&gt;I create a piechart that has these results in tabular form.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type    count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1   Pass    0&lt;BR /&gt;
2   Failed  14&lt;BR /&gt;
3   Uncovered 0&lt;/P&gt;

&lt;P&gt;It has 3 sections, Pass, Failed, Uncovered.&lt;BR /&gt;
In the above example, Failed = 100% of the piechart.&lt;BR /&gt;
I would like to colour it so that Pass is green, Failed is pink and Uncovered is Red&lt;/P&gt;

&lt;P&gt;I have tried two different code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="HiddenChartFormatter"&amp;gt;
                                   &amp;lt;param name="chart"&amp;gt;pie&amp;lt;/param&amp;gt;
                                  &amp;lt;param name="charting.fieldColors"&amp;gt;{"Pass":0x009933,"Failed":0xff6ff2,"Uncovered":0xe00707}&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not work with JSChart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="charting.seriesColors"&amp;gt;[0x009933, 0xff6ff2, 0xe00707]&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using seriesColors does not tie a colour to a value, so in the above piechart, Failed would be green as it is the only field that shows up in the piechart.&lt;/P&gt;

&lt;P&gt;Am I doing something wrong with fieldColors?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 19:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100364#M5556</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-04-18T19:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100365#M5557</link>
      <description>&lt;P&gt;I had pretty much the same issue and ended up by configuring the legend labels manually in the HiddenChartFormatter:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="charting.legend.labels"&amp;gt;[Info, Low, Medium, High, Critical, Fatal]&amp;lt;/param&amp;gt;
&amp;lt;param name="charting.seriesColors"&amp;gt;[0x999999,0x5378AD,0x98BF3B,0xF0BE1B,0xFF8800,0xD25B3B]&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH.&lt;BR /&gt;
Simon&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2013 09:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100365#M5557</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2013-04-21T09:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100366#M5558</link>
      <description>&lt;P&gt;The problem with my query is that Of the three fields I have (Pass, Failed, Uncovered), they may not all be present. When pass is not present, then failed label will receive the first color.&lt;/P&gt;

&lt;P&gt;The legend.labels does not change this fact.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 16:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100366#M5558</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-04-22T16:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100367#M5559</link>
      <description>&lt;P&gt;How about creating the field anyway in your search, even if there's no content, e.g. with fillnull() ? --&amp;gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Fillnull"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Fillnull&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 16:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100367#M5559</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2013-04-22T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100368#M5560</link>
      <description>&lt;P&gt;The field is created in the search. It is just when the value is ', the piechart does not show it, and it does not count as a field although it is present.&lt;/P&gt;

&lt;P&gt;This is what the table looks like : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type    count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1   Pass    0&lt;BR /&gt;
2   Failed  0&lt;BR /&gt;
3   Uncovered   1&lt;/P&gt;

&lt;P&gt;The piechart just will show 100% uncovered&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 18:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100368#M5560</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-04-22T18:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100369#M5561</link>
      <description>&lt;P&gt;hey cmak,&lt;/P&gt;

&lt;P&gt;did you solve this problem? if so can you please share your work around?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100369#M5561</guid>
      <dc:creator>0waste_splunk</dc:creator>
      <dc:date>2013-08-15T19:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100370#M5562</link>
      <description>&lt;P&gt;I currently meet the same problem coloring &lt;STRONG&gt;JSChart&lt;/STRONG&gt; but it is not working.&lt;BR /&gt;
Solution 1:&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="charting.fieldColors" /&gt;{"Available Storage":0x0099FF, "Used Storage(status:critical)":0xFF0000,"Used Storage(status:too high)":0xFFFF00, "Used Storage(status:normal)":0x00CC00}&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;Solution 2:&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="charting.seriesColors" /&gt;[0x0099FF,0xFF0000,0xFFFF00,0x00CC00]&lt;BR /&gt;
&lt;PARAM name="charting.legend.labels" /&gt;["Available Storage", "Used Storage(status:critical)", "Used Storage(status:too high)", "Used Storage(status:normal)"]&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;They both do not work, not all the colors are mapped correctly. &lt;/P&gt;

&lt;P&gt;I see several posts here but not really a final solution. &lt;BR /&gt;
Does anyone know a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 13:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100370#M5562</guid>
      <dc:creator>rhapsody2046</dc:creator>
      <dc:date>2013-11-19T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Colouring Piecharts created using JSChart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100371#M5563</link>
      <description>&lt;P&gt;This may help you:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/99259/coloring-pie-chart-created-using-jschart-in-sideview-utils.html"&gt;http://answers.splunk.com/answers/99259/coloring-pie-chart-created-using-jschart-in-sideview-utils.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 12:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Colouring-Piecharts-created-using-JSChart/m-p/100371#M5563</guid>
      <dc:creator>kikexclusive</dc:creator>
      <dc:date>2014-12-10T12:46:30Z</dc:date>
    </item>
  </channel>
</rss>

