Splunk Search

How to display a legend at the bottom of a pie chart panel?

kkarthik2
New Member

Can anyone provide the xml code to display the text or Legend at the bottom of the pie chart panel?
Text to be displayed : "Foo"-Yellow color ; "Foo1"-Blue color; "Foo3"-Green color.

Tags (3)
0 Karma

sideview
SplunkTrust
SplunkTrust

I think you just need to set charting.legend.placement to "bottom"

In Sideview Utils XML,

<module name="ValueSetter">
   <param name="arg.charting.legend.placement">bottom</param>

In Advanced XML:

<module name="HiddenChartFormatter">
  <param name="charting.legend.placement">bottom</param>

And in simple XML, I believe you would add this to your ``

 <option name="name">charting.legend.placement</option>
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You may need to elaborate what you've already tried, what you specifically need, and how your attempts are failing to do what you need.

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