Dashboards & Visualizations

fieldColors not working for Bar chart

jakubincloud
Explorer

Hi,

I've read a couple of post in splunkbase about changing colours in bar chart however I couldn't find any of the solutions working.
Here is my splunk graph : splunk graphimgur link

and here is an excerpt from advanced xml page:
xml code

( pasting xml code directly into the post didnt work ). Unfortunately splunk doesn't pick up field colors and displays default ones.

Does anyone have an idea how to solve that problem ?

Cheers
Jakub

0 Karma

redc
Builder

I had a similar problem and discovered that this doesn't work:

<param name="charting.fieldColors">

{0xFF0000,0x00FF00,0x0000FF}

</param>

But this does:

<param name="charting.fieldColors">{0xFF0000,0x00FF00,0x0000FF}</param>

Seems like something about the line breaks in the parameter breaks the functionality.

0 Karma

jakubincloud
Explorer

Apparently fieldColors and seriesColors work for FlashChart but not for JSChart

royimad
Builder

Can you share how did you do that? I have the same problem

0 Karma

jakubincloud
Explorer

To use different colours I've modified JSChart module to use param: seriesColors as colorPalette

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...