How to do comparison or ring in grafana

In a panel, shows yesterday’s and today’s data, but the two lines are on today’s time frame

It will be possible in Flux using shift.

It is currently possible to do it in Kapacitor and save the shifted data under a new name. Here’s an example of shifting data. Do something similar and use an influxDBOut node to save the result to the database.