Splunk Search

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

kkarthik2
Observer

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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...