I am recording a daily total of Solar generated - one figure per day - which I simply want to chart the month.
I'm using the SQL query "SELECT solar FROM mydb". This extracts the timestamp and the solar data. Here is my data after processing it through my function
And apart from just saving the timestamp, I also saved the date in YYYY-MM-DD format in it's own field called "date", thinking that I could use the SQL query "SELECT date,solar FROM mydb" instead. But then, how would I use elements 1 and 2 instead of 0 and 1 ? The extracted data would look like this
If you look at all the settings in the ui-chart config or read the node help you may have noticed a check box or the read me links to chart array formats
for bars of the same colour, set the flag Use first colour for all bars in the node configuration, and set labels for each column
See this information for how to pre-format data to be passed in as a complete chart.