Dashboards & Visualizations

Custom view - pie chart not showing all data

castle1126
Communicator

Hi,

One of the pieces of a custom app written for us takes some information from a CSV file and creates a pie chart. The XML file that defines the custom views has this section that takes information from a CSV and displays the pie chart:

<chart>
  <title>Type</title>
  <searchName>LookupQuery - Count by Type</searchName>
  <option name="charting.chart">pie</option>
  <option name="drilldown">none</option>
</chart>

The pie chart shows up nicely, but it only shows 10 elements or pieces of the pie. Running the search manually shows there are more entries than the 10 displayed. Is there a way to code into the XML an option that will show all elements from the CSV file in the pie chart?

Thanks!

Tags (2)

woodcock
Esteemed Legend

Use sliceCollapsingThreshold=0 for your chart's XML as documented here:

http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomChartingConfig-ChartLegend

0 Karma

chimell
Motivator

Hi
Type is it a name of a field in your data ?
If no try to use the following search by replacing Type field by _raw field

   LookupQuery - Count by _raw
0 Karma

castle1126
Communicator

I ended up using this option, which seems to fix the issue I was having:

0

rroberts
Splunk Employee
Splunk Employee

By the way, all the options for charting in simple XML are listed here... http://www.splunk.com/base/Documentation/latest/Developer/CustomChartingConfig-chartlegend#piechart

rroberts
Splunk Employee
Splunk Employee

Can you post the search please?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...