<?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: Change color of charts (JavaScript) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196807#M56813</link>
    <description>&lt;P&gt;Found the solution.&lt;/P&gt;

&lt;P&gt;I was working off of the UI demos examples: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; // Update the chart
function(results, job, callback)
{
    splunkjs.UI.ready(chartToken, function(){
        chart.setData(results, {
            "chart.stackMode": "stacked",
            "seriesColors": "[FFFFFF, FFFFFF, FFFFFF]" //added this line for color configuration
        })
    });
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Jan 2014 21:49:33 GMT</pubDate>
    <dc:creator>newatsplunk</dc:creator>
    <dc:date>2014-01-06T21:49:33Z</dc:date>
    <item>
      <title>Change color of charts (JavaScript)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196805#M56811</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Is there a way to change the color of a series being returned in the search results? For example, I run a search with an eval where I'm grouping the results into 'red', 'yellow', and 'green' and I'd like the resulting pie chart to correspond with that. &lt;/P&gt;

&lt;P&gt;Edit: Sorry about that, using version 6.0.1 and the javascript sdk for splunk, basically integrating the splunk chart into an external website&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 19:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196805#M56811</guid>
      <dc:creator>newatsplunk</dc:creator>
      <dc:date>2014-01-06T19:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of charts (JavaScript)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196806#M56812</link>
      <description>&lt;P&gt;Splunk version? Splunk dashboards or SDK?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 19:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196806#M56812</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-06T19:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of charts (JavaScript)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196807#M56813</link>
      <description>&lt;P&gt;Found the solution.&lt;/P&gt;

&lt;P&gt;I was working off of the UI demos examples: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; // Update the chart
function(results, job, callback)
{
    splunkjs.UI.ready(chartToken, function(){
        chart.setData(results, {
            "chart.stackMode": "stacked",
            "seriesColors": "[FFFFFF, FFFFFF, FFFFFF]" //added this line for color configuration
        })
    });
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jan 2014 21:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-color-of-charts-JavaScript/m-p/196807#M56813</guid>
      <dc:creator>newatsplunk</dc:creator>
      <dc:date>2014-01-06T21:49:33Z</dc:date>
    </item>
  </channel>
</rss>

