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
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...