Black Lives Matter - Action and Equality.
0

Graph suppression of decimals on Y axis
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Graph suppression of decimals on Y axis

by nickfixit on Wed Mar 27, 2019 8:34 am

Hi, I am graphing occurrences of events in integral numbers. When moving the feed to a graph, I select for Y axis the minimum of 0 and the maximum autoscale. And I select decimals = 0.
What I wanted was the y scale pinned to 0 but the minimum shown depending on data received. It only shows 0 if I get a 0 data value.
I suppose I could force out a 0 value as an initial event, buy is there another way?
Also it shows 1 decimal place i.e. 1.2. which is not 0 decimals. How do I display integral numbers like 1, 2, 3 on the y axis.

I appreciate your suggestions to configure the display.
Thanks
Attachments
Dashboard.png
see decimals on y axis.
Dashboard.png (54.64 KiB) Viewed 178 times

nickfixit
 
Posts: 7
Joined: Tue Mar 26, 2019 2:28 pm

Re: Graph suppression of decimals on Y axis

by barbudor on Sat Apr 13, 2019 10:55 am

Hi

I have the exact same problem with a temperature & humidity chart.
I want to set the Y-axis interval to [0, 80] but it seems that 0 is understood as automatic (just as blank)

I tried to work around by setting minimum to -1 but that give a garblish Y-axis display with "-1" and "0" overlayed one on top of the other.
So far only -10 provide a proper display but this is not what I would like.

Best regards

barbudor
 
Posts: 4
Joined: Tue Oct 29, 2013 4:33 pm

Please be positive and constructive with your questions and comments.