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!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...