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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...