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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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