Dashboards & Visualizations

Why is my dashboard picking the darkest colors for visualizations?

kdimaria
Communicator

First I just want to say I know of all the commands to change the colors. like

"charting.seriesColors": "[0x337ab7,0xF89406,0x59d685,0xffa100,0xff001d]"
and
"charting.fieldColors": "{\"Sucess\":0x337ab7,\"Error\":0xF89406}"

BUT I want to know if there is some reason why my dashboard is picking the darkest/ugliest colors. When I open the pie chart in search, it picks completely different and bright colors. Examples:

alt text alt text

The one on the left is when I click "Open in search" and the one on the right is in the dashboard. I've tried using the series.colors but it sometimes picks the same colors for two slices. Why is my dashboard picking completely different colors? Thanks

0 Karma

Sukisen1981
Champion

Since you are already aware of the xml charting colour options , I assume you have added the relevant color codes in the dashboard xml.
Now, I had a similar issue , not with pie charts but with a column line graph with multiple overlays. For some reason if you use charting.seriesColors , stuff will get disruptive. My colors on applying this (even though the number of fields charted was constant and 7 in number)but when i changed it to option 2 , charting.fieldColors then things became correct.
That being said, you have a pie chart here and the number of 'slices' in the pie chart is important. if the number of slices are constant and you apply charting.fieldColors with the slices mentioned things should work out

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...