I have this output from a MySQL query:
[{"time":"2019-07-23T18:13:24.000Z","voltage":3.26},{"time":"2019-07-23T18:13:04.000Z","voltage":3.26},{"time":"2019-07-23T18:12:44.000Z","voltage":3.26},{"time":"2019-07-23T18:12:04.000Z","voltage":3.26},{"time":"2019-07-23T18:11:44.000Z","voltage":3.26},{"time":"2019-07-23T18:11:23.000Z","voltage":3.26},{"time":"2019-07-23T18:11:03.000Z","voltage":3.26},{"time":"2019-07-23T18:10:43.000Z","voltage":3.26},{"time":"2019-07-23T18:10:22.000Z","voltage":3.26},{"time":"2019-07-23T18:10:02.000Z","voltage":3.26}]
I try to display this with the dashboard ui_chart node, but get "bad data inject" from debug window.
What am I missing here?
Example flow (array put into inject node):
[{"id":"cce7a5b3.8ffaf8","type":"tab","label":"chart test","disabled":false,"info":""},{"id":"11e50b1e.086525","type":"inject","z":"cce7a5b3.8ffaf8","name":"inject array","topic":"","payload":"[{\"time\":\"2019-07-23T18:13:24.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:13:04.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:12:44.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:12:04.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:11:44.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:11:23.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:11:03.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:10:43.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:10:22.000Z\",\"voltage\":3.26},{\"time\":\"2019-07-23T18:10:02.000Z\",\"voltage\":3.26}]","payloadType":"json","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":214,"y":155,"wires":[["d6be3d5e.2fe3d","fbefbe0.4cf9d4"]]},{"id":"d6be3d5e.2fe3d","type":"ui_chart","z":"cce7a5b3.8ffaf8","name":"line chart","group":"f02a6ce.5981f9","order":1,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":426,"y":158,"wires":[["f88aaee7.8455"]]},{"id":"fbefbe0.4cf9d4","type":"debug","z":"cce7a5b3.8ffaf8","name":"complete msg","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":447,"y":121,"wires":[]},{"id":"f88aaee7.8455","type":"debug","z":"cce7a5b3.8ffaf8","name":"complete msg","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":674,"y":119,"wires":[]},{"id":"f02a6ce.5981f9","type":"ui_group","z":"","name":"TEST","tab":"96eb0793.053038","order":2,"disp":true,"width":"12","collapse":false},{"id":"96eb0793.053038","type":"ui_tab","z":"b317d85f.b86b38","name":"Home2","icon":"dashboard"}]