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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...