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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...