connect a change node to the output of the mysql node.
in the change node select the j: expression option (the j: is for jsonata)
click the three dots on the right of the tab and it will open up.
paste in the code from Steve's example
[{
"series": ["kW"],
"labels": ["kW Used Today"],
"data": [[payload.{
"x": captureTime,
"y": $."kW Used Today"
}]]
}]
and in your case change captureTime to time and kW Used Today to value and change the series and labels test to what you want.
Good luck with that! You've wandered into a whole new nascent world of JS Object manipulation, which seems to only be documented online. That being said, you can read the entire set of docs on the jsonata.org site in an afternoon -- well worth the price of admission, in my opinion! There is also the jsonata exerciser page, where you can paste your data, build an expression, and see the results immediately. Of course, that behavior is also built-in to the change node, as Paul mentioned above, using the JSONata expression editor panel... Have fun!
In fact, if you are a beginner, I suggest not getting too deep in jsonata. It is a very powerful tool for massaging data but it is not the easiest stuff to get to grips with. There is never an absolute requirement to use it, as the same task can always be done using more more straight forward techniques, for example in a function node. My advice would be initially to get to grips with using javascript and worry about whether an in-depth knowledge of jsonata would be useful for a later date.