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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...