Dashboards & Visualizations

Is it possible to have vertical text labels on chart x-axis?

Glenn
Builder

...or do I need to raise an enhancement request?

Allowing only horizontal text labels only on x-axis point labels means that more often than not for the kinds of things I am charting, labels are compressed to a useless "start...end" name.

A common example is when creating distribution graphs with buckets named like "0-100", "1000-2000" etc. When you have more than a few of these, the number (and length) of the labels required means that the labels are unreadably truncated to "0...00" or "10...0", and you have to mouse over a data point on the chart to see what the value is.

Having a vertical label option would solve all of these problems as you then have a very small fixed width for all x-axis labels (ie. the height of one character).

Tags (3)

bwooden
Splunk Employee
Splunk Employee

We can do that via the simple XML

<option name="charting.axisLabelsX.majorLabelStyle.rotation">90</option>

Source:
http://docs.splunk.com/Documentation/Splunk/latest/Viz/AdvChartingConfig-TextblockLayoutspriteSprite...

Jason
Motivator

Or <param name="charting.axisLabelsX.majorLabelStyle.rotation">90</param> in advanced XML (only change is option->param). Unfortunately it is not supported by JSchart.

0 Karma

bwooden
Splunk Employee
Splunk Employee

It gets placed in the XML file for the specific chart in question. There are several ways this can be accomplished. One is by navigating to manager -> user interface -> views. If this is simple XML, you can edit on the page itself by clicking the "Edit on" button and then clicking the "Edit XML" button.

0 Karma

cwi
Engager

could you tell me where I place this line? I want it to only effect charts I make, not the entire system.
Thx.

0 Karma

BobM
Builder

As far as I know it isn't possible at the moment. What I sometimes do in these cases is use a bar chart instead of a column one though even this isn't always satisfactory.

I'd raise it as an enhancement request though the next version of splunk is rumored to include support for html5. With this, you may be able to tweak more of the settings.

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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...