Dashboards & Visualizations

Display the values on pie slice in pie chart

navd
New Member

I wanted to show the field values in each slice of pie .Now I have value shown only by hovering on each slice

Tags (1)
0 Karma

mayurr98
Super Champion

hey @navd

Try this run anywhere XML and take it as a reference to build yours.

<dashboard>
  <label>Test</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index=_internal 
|  stats count by log_level 
|  eval log_level=log_level." , ".count</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">pie</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
</dashboard>

let me know if this helps!

abulco01
Explorer

This is really clever! Thank you!

0 Karma

niketn
Legend

I have updated my answer https://answers.splunk.com/answers/614524/how-to-create-a-piechart-with-two-value-fields.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

somesoni2
Revered Legend

Try like this

your current search, which include aggregation commands like ..| stats count as valueField by someField
| eval someField=someField." (".valueField.")"
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...