Dashboards & Visualizations

Please help to create a pie chart

leanpro
Engager

I have stats as below and convert this to a pie chart (2 pieces showing the count)
alt text

Tags (1)
0 Karma
1 Solution

TISKAR
Builder

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

View solution in original post

0 Karma

TISKAR
Builder

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
0 Karma

leanpro
Engager

Many thanks! Exactly what I needed!

0 Karma

neelamsantosh
Path Finder

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

0 Karma

leanpro
Engager

I know that but the pie shows both the count

0 Karma

neelamsantosh
Path Finder

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.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...