Splunk Search

Change Chart Increment (X Axis)

henryt1
Path Finder

I have a dashboard created with a few different things in it, and when I left the office on Friday my 'Sessions' count was only showing whole numbers in that particular chart. However, when I came in this morning, it's showing in 0.25 increments (in the X axis). How could I change this back to whole numbers?

Thanks,

Tyler

1 Solution

cphair
Builder

I suspect you'll need to use this charting parameter, assuming you're in simple XML:


<option name="charting.axisLabelsX.integerUnits">true</option>

UPDATE: Given that you're using a bar graph, try setting charting.axisLabelsY.integerUnits to true instead. I just tested it on a view of my own, and the axisLabelsY parameter affected the dependent axis, which for a bar graph is the horizontal one. Go figure.

You can read about the other available parameters for axes and gridlines at http://docs.splunk.com/Documentation/Splunk/4.3.3/Developer/CustomChartingConfig-AxisGrid

View solution in original post

henryt1
Path Finder

Where in the XML would this go? I've tried several places and nothing is working. Right now it looks like this:



*
Live Sessions (Past Hour)
-1h@h
now


bar
gaps
false
default
false
none

""
""
""


0 Karma

henryt1
Path Finder

The change to the Y axis like you mentioned above got it, thanks! Oh and for the search string I listed I just took out the search I'm doing when I posted it on here.

0 Karma

cphair
Builder

@henryt1, I updated my answer above. Did you modify your XML from what appears in your dashboard? searchString is miscapitalized, and I'm not sure what you're doing a bar graph over since your search has no statistical command.

0 Karma

cphair
Builder

I suspect you'll need to use this charting parameter, assuming you're in simple XML:


<option name="charting.axisLabelsX.integerUnits">true</option>

UPDATE: Given that you're using a bar graph, try setting charting.axisLabelsY.integerUnits to true instead. I just tested it on a view of my own, and the axisLabelsY parameter affected the dependent axis, which for a bar graph is the horizontal one. Go figure.

You can read about the other available parameters for axes and gridlines at http://docs.splunk.com/Documentation/Splunk/4.3.3/Developer/CustomChartingConfig-AxisGrid

Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...