Generate a graph with the charts plugin

Hi there, I am trying to replicate the chart example. However, I cannot seem to reproduce the needed data structure. Any tips?

Desired format

Data example from REST API
Screenshot 2021-06-11 at 15.25.46

How the data is currently structured


What formula or function do I need to use to achieve the desired format?

Nvm I got it.

Needed to do a concat…

CONCAT([[‘Date’, ‘Air temperature’]], MAP((data.App_sensor_data),[FORMAT_DATETIME_LOCAL(item.measured_at, “DD/MM/YYYY”), item.air_temperature]))