Dashboards & Visualizations

Why does a 0/zero show up on my stacked bar chart?

architkhanna
Path Finder

we have our own stacked bar visualization, where we need to eliminate bars with 0 values.
I tried removing this property from the js
minPointLength: 0,
alt text

However, this just eliminate the bar and not the visibility of 0 from bar and shows overlapping values on same bar(see pic).But i want to remove the 0 at all from graph
Any leads would be helpful.
TIA

0 Karma

niketn
Legend

@architkhanna, if you are using your own custom visualization, I am afraid you will be on your own figuring out JS and CSS changes directly in your visualization code or else CSS/JS overrides through Simple XML. Is this visualization a published Custom Visualization App on Splunkbase?

Can you share the underlying query so that we can suggest removal of fields directly from the data for visualization?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

jkat54
SplunkTrust
SplunkTrust

In your charting options, have you have selected "show values - min/max"?

If so, change it to max only... or none.

Other option is to use eval in your search to force the fields value to null

| eval fieldName=if(fieldName=0,null(),fieldName)

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...