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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...