Dashboards & Visualizations

Is it possible to achieve a column chart with timechart showing days in every column?

Mike6960
Path Finder

I have a search with timechart, If I use the VIS column chart I only see the mondays as date on the axis. Is it possible to show every day per column?

 

index=test host=test* |my  search  | eval date=strptime(date,"%A%m/%d/%Y") | timechart span=1d count

Mike6960_0-1668077437140.png

 

Labels (1)
0 Karma

johnhuang
Motivator

Try something like this. You have to manually select the column chart and format the X-Axis Label to rotate vertically.

<base_search>
| timechart span=1d count
| eval date=strftime(_time, "%Y-%m-%d")
| table date count

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I believe Splunk manages that automatically based on the width of the columns.  Fewer columns can be wider, allowing for more labels.  You can try overriding that using this in your dashboard.

 

<option name="charting.axisLabelsX.majorLabelVisibility">show</option>

 

---
If this reply helps you, Karma would be appreciated.
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!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...