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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

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