- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change color of charts (JavaScript)
newatsplunk
Explorer
01-06-2014
11:23 AM
Hi,
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.
Edit: Sorry about that, using version 6.0.1 and the javascript sdk for splunk, basically integrating the splunk chart into an external website
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
newatsplunk
Explorer
01-06-2014
01:49 PM
Found the solution.
I was working off of the UI demos examples:
// 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
})
});
}
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
01-06-2014
11:29 AM
Splunk version? Splunk dashboards or SDK?
