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

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...