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!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

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

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...