Dashboards & Visualizations

How to display pie chart values with names in legends?

sjs
Path Finder

Hey people,

 

Here is what I am trying to do

I have a pie chart created with the data

sjs_0-1674189925819.png

The above pie chart is generated from the following query

 

...| table filterExecutionTime ddbWriteExecutionTime buildAndTearDownTime | transpose 0

 

 

The pie chart looks stunning, but the only pain point is that to see the values I have to hover on the elements

 

Instead what I was thinking to make is a legends tab which will show the Names along with values

sjs_1-1674190142760.png

 

I was able to create a legend tab, but I couldn't add the values to it

 

Here is how I did the legends tab

 

<panel id="panel_legend_2">
      <table>
        <search base="errors2">
          <query>|fields column
          | rename column as "Legends"
          </query>
        </search>
        <format type="color" field="Legends">
          <colorPalette type="sharedList"></colorPalette>
          <scale type="sharedCategory"></scale>
        </format>
      </table>
    </panel>

 

 

Could you please help me out here

Labels (2)
Tags (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @sjs,

for my knowledge it isn't possible to add a legenda to a Pie Chart.

As a workaround you could add another panel, near the Pie Chart,, in table format, with the values of the legenda.

This solution could be very similar to a legenda if you use Dashboard Studio.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...