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!

Out of the Box to Up And Running - Streamlined Observability for Your Cloud ...

  Tech Talk Streamlined Observability for Your Cloud Environment Register    Out of the Box to Up And Running ...

Splunk Smartness with Brandon Sternfield | Episode 3

Hello and welcome to another episode of "Splunk Smartness," the interview series where we explore the power of ...

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...