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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...