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 William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...

Major Splunk Upgrade – Prepare your Environment for Splunk 10 Now!

Attention App Developers: Test Your Apps with the Splunk 10.0 Beta and Ensure Compatibility Before the ...

Stay Connected: Your Guide to June Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...