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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...