The sort of plotting task you describe is usually handled by a plotting library. I’m thinking of things like D3js or Vega-lite. ( I’m no expert so please don’t take that as recommendations of those particular libraries)
An interim approach could be write a gui client app that uses the plot library, and pulls data from your back end server.
ActivityLog2 is a great example of plot
Maybe this blog post will be a useful starting point:
Thank you for the leads.
I’m inclined to do the drawing routines myself, since the graph I’ve created in CL does things like indicate day and night, normal temperature limits and defrost times in a colored background. I don’t like thinking what it would take to do that in connection with a plotting library. Plotting the data points is the easy part.
I’ve thought about the client app approach, and that would be an improvement over what I have, but it would be so handy to have the monitoring available hardware- and software-independent on the web.
- function definitions allow default arguments
- let expressions
I’m afraid I’m missing too much context to make any sense of Urlang. It would help to have an orientation that assumed I know very little about Racket and the various web technologies that I’m largely clueless about.
At the moment my most conceptually direct path looks like using Racket’s drawing toolkit to create a pdf that can be part of a web page served using Racket. It may not respond instantly, but it would meet the basic need.
If the plot is static, then the simplest is to use
plot and save the image as
I have heard good things about D3, but there are lots to choose from.