Dashboards & Visualizations

How to change precision of y-axis labels?

whitmad
Explorer

I'm charting some data that has values close, but under 1.0, e.g., in the range 0.9999 to 1.0 and all of my y-axis labels come out as "1". I can't specify minimum and maximum tick size because I want the graph to scale correctly according to the actual data (which could in some circumstances cover a wider range of values). I've tinkered with the XML and currently have:

<chart>
  <title>Publisher Success By Node</title>
  <option name="charting.axisTitleY.text">Success Rate</option>
  <option name="charting.chart">line</option>
  <option name="charting.axisY.includeZero">false</option>
  <option name="charting.axisY.scale">false</option>
  <option name="charting.axisLabelsY.scale">true</option>
</chart>

but nothing seems to make any difference. How can I specify the precision for the y-axis values, or turn off rounding, if that's what is happening? The graph itself is fine, adjusting correctly to the range of data - it's just the labels that are meaningless.

Tags (1)
0 Karma

Simon_Fishel
Splunk Employee
Splunk Employee

Interesting. I would try getting rid of the "charting.axisY.scale" and "charting.axisLabelsY.scale" options. The first one controls linear versus log scale for the axis, and the second one doesn't do anything that I know of.

If that doesn't help, could you post some sample results and/or a screenshot of what you're seeing? Also, what version of Splunk are you on?

0 Karma
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 ...