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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...