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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...