Dashboards & Visualizations

coloring pie chart

smolcj
Builder

Hi,
can we color pie chart according to data values as in column chart?
please help
Thank you

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If I understand your question correctly, you need to add something like the following to your HiddenChartFormatter paragraph.

<param name="charting.fieldColors">{"ValueA":0x00BE00,"ValueB":0x0000BE,"ValueC":0xFFFF00,"ValueD":0xFFA319,"ValueE":0xBE0000}</param>

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

If I understand your question correctly, you need to add something like the following to your HiddenChartFormatter paragraph.

<param name="charting.fieldColors">{"ValueA":0x00BE00,"ValueB":0x0000BE,"ValueC":0xFFFF00,"ValueD":0xFFA319,"ValueE":0xBE0000}</param>

---
If this reply helps you, Karma would be appreciated.

richgalloway
SplunkTrust
SplunkTrust

I've only used it with FlashCharts.

---
If this reply helps you, Karma would be appreciated.
0 Karma

cmak
Contributor

Does this work with JSChart or does it only work for FlashChart

0 Karma

smolcj
Builder

wierddd ,, even i tried with fieldcolors but didnt work,, but this worked 🙂
thank youu

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...