You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a quick look at this and seem to work for me but I haven't tried to recreate the issue with your dashboard json yet.
The decimals field on the axis tab does not control the number of decimal places for legend values. That field is on the legend tab. But it seems to be the same issue for the axis values as well.
Hi @daniellee , thanks for having a look.
The difference is there (see screenshots), but it's not consistently reproducable, as I just found out.
Setting the number of decimals explicitly, on the legend tab (thanks!), works fine for us.
Feel free to close this issue if you don't feel the need trying to reproduce it.
@tw-bert I can reproduce this. It seems to be connected to a change we made to the code that calculates the number of decimal places for the y-axis (this calculation is complicated so it is only wrong sometimes). I added it to the milestone for the next release. Thanks for reporting this!
In my particular case, I was showing ping's ms and found the same problem, but now I need to set legend->values->decimals to 3 to see 3 decimals in tooltip or legend. I upgraded from 4.6 to 5.1 also.
But doing that solves it.
What Grafana version are you using?
grafana_5.1.0_amd64.deb
What datasource are you using?
InfluxDB
What OS are you running grafana on?
ubuntu.xenial64
What did you do?
Copied grafana.db from our live system to a separate VM, upgraded to Grafana 5.1.0 to check for issues
What was the expected result?
To see the same data with the same precision. '1.01' must stay '1.01' in the legend and the tooltip.
What happened instead?
'1.01' becomes '1' in Grafana 5.1.0
Grafana 4.x:
Grafana 5.1.0:
Both Axes are configured the same:
Here is the full JSON of the panel (Grafana 4.6.2):
The text was updated successfully, but these errors were encountered: