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 | Why did the turkey cross the road?

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...