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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...