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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...