Dashboards & Visualizations

Could you help me format my pie chart?

jip31
Motivator

hello,

I have made a pie chart based on the code below.

I thought it was possible to format it quickly but it doesnt seems to be the case.

index=windows sourcetype="wineventlog:system" SourceName="Disk" (EventCode=7 OR EventCode=11 OR EventCode=51 OR EventCode=52) (Type="Critique" OR Type="Avertissement" OR Type="Erreur") 
| stats count by  EventCode

What is a good process?

To adapt the XML file??

For example, I want to add a legend, to add the name "EventCode" on the label, to add the number value on the label, and to add % in the label:

    <title>Pie chart by EventCode</title>
    <search>
      <query>| loadjob savedsearch="admin:search:FO_DiskHealth_EV_Pie"</query>
      <earliest>-24h@h</earliest>
      <latest>now</latest>
    </search>
    <option name="charting.axisTitleX.visibility">visible</option>
    <option name="charting.axisTitleY.visibility">visible</option>
    <option name="charting.axisTitleY2.visibility">visible</option>
    <option name="charting.chart">pie</option>
    <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
    <option name="charting.drilldown">none</option>
    <option name="charting.legend.placement">right</option>
    <option name="trellis.enabled">0</option>
  </chart>

Could you help me please??

0 Karma
1 Solution

vishaltaneja070
Motivator

Hello @jip31

Could you please check the below link and see if that solves your problem:

link text

View solution in original post

0 Karma

vishaltaneja070
Motivator

Hello @jip31

Could you please check the below link and see if that solves your problem:

link text

0 Karma

jip31
Motivator

Hello
it means that we just can use these options?
charting.chart.sliceCollapsingLabel
charting.chart.sliceCollapsingThreshold
charting.chart.showLabels
charting.chart.showPercent

0 Karma

vishaltaneja070
Motivator

Hello @jip31

Yes that's true, what ever option available on the above link is available only. You can use JS to create dashboard there you can have multiple options.

Up vote the answer if you are satisfied.

0 Karma

jip31
Motivator

ok thanks!!

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 ...