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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...