Timeshift graph creation

I would need advice on grafana, influx, home assistant. I need to display an entity with timeshift in one graph. So, for example, the current temperature and the temperature -24 hours. I have no idea if it can be displayed like this in the graph.


Are you using influxql or flux to query the data

Please post sample data?