Splunk Search

Turn the date on a graph

hartfoml
Motivator

I have a graph that is showing data by date over the last 30 days. I have converted timeformat down to "%m/%d. Even with this small date format it is hard to read the date when I squash 30 days on the chart. I would also like to show the "%a" short day format so people can see the weekend days.

My question is how to I turn the date on the x axis so it is printed vertically rather that horizontally so it is more readable?

Tags (2)
0 Karma

imrago
Contributor

To rotate the labels, in the advanced xml you could add the following parameter to HiddenChartFormatter module

<param name="charting.axisLabelsX.majorLabelStyle.rotation">90</param>

This might not be supported in JSChart.

0 Karma

imrago
Contributor

My previous suggestion did not work, because JSChart was used by simplified xml.

Please try the following where you will get flash based chart :



Splunk Licence Use Over 30 Days
Splunk Licence Use Over 30 Days
line
1
90

0 Karma

hartfoml
Motivator

Thanks so much for the help. this code looks like it should work but it doesn't. if you can think of anything else let me know.

Hope to see you at the Users .conf next week. Thanks again

0 Karma

imrago
Contributor

in case that you are using simplified xml that line would be

90

so try this:



Splunk Licence Use Over 30 Days
Splunk Licence Use Over 30 Days
line
90

0 Karma

hartfoml
Motivator

Thanks for the help

Here is what I have that is not working



Splunk Licence Use Over 30 Days
Splunk Licence Use Over 30 Days
line
90

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...