Pressure chat for weather | question about graph height relative to the min-max data #11829
Unanswered
flexdesignnz
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Am I correct you want to have the "white space" of the chartArea as limited as possible? if so, have you used grace for the y scale? Grace will give an amount of points of space based on the Y scale. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm building a graph that is designed to bring in Barometric Pressure for a Weather station, over 1 hour in 10 minute increments it displays what the pressure was at the time, a historial pressure chart if you will. Here is a link to the website: https://wswr.webflow.io/.
Screenshot of the chart
Most times the graph never gets to the top of the canavas div, (see screenshot about 25% of its potential height in the canvas) sometimes it will spike to the top but no that often and another issue is sometime on the initial page load we will find the data very low near the bottom for all 7 data points almost flat along the graph but their is significant different in each data point. One would assume it will rise to the top?
My main question is: What controls the min and max height of the data relative to the graph? Pressure can fluxuate quite a bit but what I want to try achive is no matter what the minimum data or the maximum data point is, I want to to evenly distribute to fill as much of the canvas height as possible.
I have attached the script we are using below:
pressure_graph.txt
Any ideas on what could be implemented to have further control over this would be a massive help.
Beta Was this translation helpful? Give feedback.
All reactions