Dashboards & Visualizations

stats/chart - Set number of xtick-labels

light_of_sirius
Explorer

Hello

i would like splunk to show some caption for the x-axis. 

As you can see, displaying all ticks would be too cramped. So, Splunk decides to show None.

However, still some ticks would be helpful.

Is it possible to set the number of ticks shown?

light_of_sirius_0-1602595028551.png

 

 

 

base search | chart agg(field_geberdifferenz) as "Geberdifferenz Hubwerk" by Blockstelle

 

or 

 

base search | stats agg(field_geberdifferenz) as "Geberdifferenz Hubwerk" by Blockstelle

 

leads to this plot.

I can't share any data though.

Thanks 🙂

Labels (1)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

# will return only first 10 Blockstelle. I don't think it makes sense if you randomly pick first 10 you should apply some logic to see of your interest.
| head 10 

————————————
If this helps, give a like below.
0 Karma

inventsekar
SplunkTrust
SplunkTrust

i assume you want to show the x-axis values. if yes, then, on the dashboard xml source, pls add:

<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">-90</option>
<option name="charting.axisTitleX.visibility">visible</option>

 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

light_of_sirius
Explorer

Adding these options, whilst checking that they are set only once, does not produce any visual difference.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...