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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...