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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...