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
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...