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!

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 ...