Grafana gives your option to troubleshoot it - query inspector Using Grafana's Query Inspector to troubleshoot issues
You can check how query looks like (maybe macro is not initialized correctly), what is returned (maybe there is really empty result, or returned timestamps are not correct). You need to troubleshoot on your own. Also be familiar with time grouping - read InfluxDB doc - there are some additional option, e.g. fill()…