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.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...