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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...