Dashboards & Visualizations

How to set bar chart a specific colour?

POR160893
Builder

Hey,

I am tasked with creating a bar chart for one of my dashboard panels and the colour of the bar chart must be pink.

I am using:
<option name="charting.fieldColors">0xff66cc</option>
for the panel but the bar chart still turns blue:

POR160893_0-1652793260979.png

 



Can you please help?


Thanks,
P

Labels (1)
0 Karma
1 Solution

etoombs
Path Finder

It looks like you combined features from the two options. When doing the charting.seriesColors, you don't name the field. Regardless of which you use, the value should be in brackets.

 

 

<option name="charting.seriesColors">{0xc98b06}</option>
or
<option name="charting.fieldColors">{"count": 0xc98b06}</option>​

 

 

View solution in original post

0 Karma

etoombs
Path Finder

It looks like you combined features from the two options. When doing the charting.seriesColors, you don't name the field. Regardless of which you use, the value should be in brackets.

 

 

<option name="charting.seriesColors">{0xc98b06}</option>
or
<option name="charting.fieldColors">{"count": 0xc98b06}</option>​

 

 

0 Karma

etoombs
Path Finder
0 Karma

POR160893
Builder

I read the link you sent, and edited my code to the following:
<option name="charting.seriesColors">"count": 0xc98b06</option>
Still didn't work 😞

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

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 ...