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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...