Splunk Search

Can't get charting.axisLabelsX.majorLabelStyle.rotation to work.

williamgrant
Engager

I've run into the problem where the X axis labels of my charts are being shortened by ellipsis because they are too long so I want to have them displayed vertically.

I've read, in the answers to other questions, that the solution is to use the option "charting.axisLabelsX.majorLabelStyle.rotation" and set it to 90.

This isn't working for me, I still get horizontal lables shortened by ellipsis. Any thoughts on how I can get my labels to be displayed vertically?

Will

P.S. I couldn't get the XML for my dashboard to display correctly that's why I didn't include it.

Tags (2)
1 Solution

Simon_Fishel
Splunk Employee
Splunk Employee

"charting.axisLabelsX.majorLabelStyle.rotation" is only supported by the FlashChart renderer. My guess is you're using the JSChart renderer, so you'll need to switch.

If you're in Advanced XML, you can just change <module name="JSChart"> to <module name="FlashChart">.

If you're in Simple XML, try this: http://splunk-base.splunk.com/answers/38135/version-43-using-flash-charting-instead-of-jschart

View solution in original post

Simon_Fishel
Splunk Employee
Splunk Employee

"charting.axisLabelsX.majorLabelStyle.rotation" is only supported by the FlashChart renderer. My guess is you're using the JSChart renderer, so you'll need to switch.

If you're in Advanced XML, you can just change <module name="JSChart"> to <module name="FlashChart">.

If you're in Simple XML, try this: http://splunk-base.splunk.com/answers/38135/version-43-using-flash-charting-instead-of-jschart

bhawkins1
Communicator

"charting.axisLabelsX.majorLabelStyle.rotation" is only supported by the FlashChart renderer. My guess is you're using the JSChart renderer, so you'll need to switch.

This is no longer true. FlashChart/AdvancedXML are now deprecated, and majorLabelStyle.rotation will work just fine in highcharts/splunkjs/simplexml.

0 Karma

RohiniJindam
Path Finder

I am facing the same issue. But i had to move from FlashCharts to JS Charts as the former weren't supported by Splunk's PDF Report Server Add on. So is there any other workaround for this?

0 Karma
Get Updates on the Splunk Community!

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...

What's New in Splunk Cloud Platform 9.2.2406?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2406 with many ...

Enterprise Security Content Update (ESCU) | New Releases

In August, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...