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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...