How to Properly Scale a Floor Plan with Sensor Data in Grafana?

What Grafana version and what operating system are you using?
I am using Grafana as an add-on in Home Assistant (version 10.2.2). Home Assistant is running on Debian 12.

What are you trying to achieve?
I want to display sensor values on a floor plan so that the values change color depending on their readings and remain correctly positioned on the plan.

How are you trying to achieve it?
I am using the Canvas panel plugin in Grafana with a background image of my building’s floor plan. The sensor values are stored in InfluxDB.

What happened?
I encountered an issue with background image scaling.

  • If I set Background image size to “Fill”, the image gets distorted on different devices due to varying aspect ratios.
  • If I use “Original size” or “Tile”, the image does not fit properly on some screens.
  • If I set it to “Contain” or “Cover”, the overlay elements (sensor values) shift when the screen size changes, making them misaligned with their actual positions in the building.

What did you expect to happen?
I expected the sensor values to stay in their correct positions on the floor plan, regardless of the screen size or resolution.

Can you copy/paste the configuration(s) that you are having problems with?
I can provide additional configuration details if needed.

Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
There are no specific errors, but the misalignment issue makes the visualization inaccurate.

Did you follow any online instructions? If so, what is the URL?
I searched for solutions but haven’t found a clear answer.

Question:
How can I ensure that my sensor values remain correctly positioned on the floor plan while maintaining a properly scaled background image? Should I adjust Canvas settings, use a different approach, or is there a better plugin for this task?

Thank you in advance for your help!