Dashboards & Visualizations

Text Orientation within Charts

mcwomble
Path Finder

Is there any way of rotating the text within charts? I have some charts where column names on the x-axis are truncated as they are larger than the column width and would like to rotate them 90 degrees.

Thanks

Tags (1)

Ant1D
Motivator

Hi,

You can rotate the labels on the x-axis to lose the ellipsis (...) that appears by adding the following code inside your HiddenChartFormatter module (advanced xml) in your view (.xml file):

<param name="charting.axisLabelsX.majorLabelStyle.rotation">270</param>
<param name="charting.axisLabelsX.majorLabelStyle.overflowMode">default</param>

If you are using simple XML, I believe that you can use the same code except that you will have to change the param tags to option tags.

sideview
SplunkTrust
SplunkTrust

I dont have a definitive answer but maybe this will help someone find one.

There is a layoutTransform attribute that you can set on anything that inherits from LayoutSprite.

http://www.splunk.com/base/Documentation/4.1.5/Developer/AdvChartingConfig-TextblockLayoutspriteSpri...

However if I'm reading the docs right I think AxisLabels are TextBlock elements and thus not LayoutSprites.

eg: http://www.splunk.com/base/Documentation/4.1.5/Developer/CustomChartingConfig-AxisGrid#Axis_labels

0 Karma
Get Updates on the Splunk Community!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...