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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...