0

Specifying labels for 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.

Specifying labels for Y-axis?

by sangamon on Thu Oct 08, 2015 1:55 pm

In the Line Graph block, there doesn't seem to be a way to specify the values which actually show up in the Y-Axis. Rather, they appear to be dynamically generated. I thought that the minimum and maximum settings might do that, but they don't. Is there a hidden option, or should I request that as an enhancement?

.

sangamon
 
Posts: 27
Joined: Wed Dec 15, 2010 12:45 pm

Re: Specifying labels for Y-axis?

by jwcooper on Thu Oct 08, 2015 4:21 pm

The values are computed based on the minimum and maximum values your data contains. If you set a y-axis min and max it will limit the axis to those set limits. What are you seeing instead? What would you like to happen?

jwcooper
 
Posts: 677
Joined: Tue May 01, 2012 9:08 pm

Re: Specifying labels for Y-axis?

by sangamon on Thu Oct 08, 2015 4:49 pm

The scale is indeed set using the min and max in my data. The problem with that is that the scale of the graph jumps around as more data loads. I would prefer to set the scale myself, so the presentation is consistent. Thanks.

sangamon
 
Posts: 27
Joined: Wed Dec 15, 2010 12:45 pm

Re: Specifying labels for Y-axis?

by sangamon on Fri Oct 09, 2015 1:17 pm

Here is some additional info on the line graph block. I have a max of 100 set on a line graph. I had some out of bounds data (104), and note that the graph plotted that data.

sangamon
 
Posts: 27
Joined: Wed Dec 15, 2010 12:45 pm

Re: Specifying labels for Y-axis?

by sangamon on Sat Oct 10, 2015 2:09 pm

And, here is some additional, additional data. I had a spurious value of 429496759 occur. The line graph adjusted to match that value. As you might imagine, my 0-100 values are now severely compressed on the graph.

sangamon
 
Posts: 27
Joined: Wed Dec 15, 2010 12:45 pm

Please be positive and constructive with your questions and comments.