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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...