Grafana Version 7 to Version 8 Time Series Chart Error: failed to convert long to wide series

  • What Grafana version and what operating system are you using?
    Grafana v8.2.1 (88622d7f09) on Windows Server 2019

  • What are you trying to achieve?
    Continue to use the Time Series / Line chart that I have been using since version 6 and 7.

  • How are you trying to achieve it?
    This is the query that I have been using.
    image

I now see this error message.

failed to convert long to wide series when converting from dataframe: long series must be sorted ascending by time to be converted

Similar issue here