I have stats as below and convert this to a pie chart (2 pieces showing the count)
Hello,
Can you try this please,
<yourSearch>| transpose 0 column_name="type" | rename "row 1" as value
For Example past this request in your bare search,
| makeresults |eval a=60, b=40 | table a b| transpose 0 column_name="type" | rename "row 1" as value
Hello,
Can you try this please,
<yourSearch>| transpose 0 column_name="type" | rename "row 1" as value
For Example past this request in your bare search,
| makeresults |eval a=60, b=40 | table a b| transpose 0 column_name="type" | rename "row 1" as value
Many thanks! Exactly what I needed!
on the dasbord/panel
on top u have magnifier/search |table|art brush kind of symbols
choose the table icon and "Select visualization-> select the Pie chart".
Ref: https://docs.splunk.com/Documentation/Splunk/7.0.3/Viz/PieChart
happy splunking
I know that but the pie shows both the count
Obviously, as the results has 2counts.
which value do u want to show.
If you want single values , at the end of ur search "|table "
then the pie chart will show only desired field.