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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

From Raw Data to Executive-Ready Stories, Faster

Build Data Stories for Every Audience  A dashboard is rarely just a dashboard. It might be the view an ...

Guided Onboarding with Auto-schema Is Now Generally Available

  We are excited to announce the General Availability of Guided Onboarding with Auto-Schematization ...

ATTENTION: We’re Moving! (AGAIN!)

The Splunk Community Slack is undergoing a system migration to keep our workspace secure and ...