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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...