Loading data into jqplot from database
Hello Appery.io & Community,
I am trying to populate a jqplot in my app using data from my database. The database has several sensor temperature readings over time. Therefore the idea is to create a graph with say 8 lines (from 8 sensors) each with it's own sensor ID stored in a common database collection. Each line would consist of say the most recent 10 temperature readings.
I have been able to create a jqplot successfully with dummy data as per other threads.
I have been able to produce a database query service to gather the data, but am not sure how to store this data in an array (or several arrays - maybe one per sensor) so that they can be loaded into jqplot (as above?).
Can someone advise exactly how to use "Local storage variables" (assuming this is the best way) to hold arrays of data retrieved from a database collection and then use them for a jqplot?