Dashboards & Visualizations

pie chart

avneet26
Engager

I have a search by which I am creating a pie chart.. I want to create it in such a way that when I select/click one of its sector it should show another pie chart with the values/fields in the hierarchy of that sector? how to do that? is it possible to create two pie charts of that sort?

Labels (1)
0 Karma

renjith_nair
Legend

are you looking for something similar to

<dashboard>
  <label>Pie Chart</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index=_*|stats count by index</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">pie</option>
        <option name="charting.drilldown">all</option>
        <drilldown>
          <set token="index">$click.value$</set>
        </drilldown>
      </chart>
    </panel>
    <panel depends="$index$">
      <title>Sourcetypes for "$index$"</title>
      <chart>
        <search>
          <query>index=$index$|stats count by sourcetype</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.chart">pie</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
</dashboard>
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

avneet26
Engager

Can I get help with the help of an example?

 

0 Karma

paramagurukarth
Builder

Read through https://docs.splunk.com/Documentation/Splunk/8.0.6/Viz/DrilldownIntro

You will get what you need now and in future

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!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...