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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...