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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...