Can we create an image variable in grafana?

I want to associate a variable with image. so if i select a particular variable, an associated image would appear.eg. if i select building 1 in variable, i would see building 1 image in heatmap background.

this has been asked many times in this forum and answered. what have you so far done to solve this issue?

I could not find any relevant post with solution. could you please share one ? I haven’t tried anything. I am not sure how to start with that association.

is your data on disk or some base64 in a database?

My data is in influx db. I am keeping my images in grafana’s img folder to access.

How is the variable related to the image?
Please share sample variable data and sample img file name

I have variable as building_id and it has various building names as values. each building has a diff. map which i want to use as a background to show the movement in heatmap over the image. Currently the images and variable values of building_id are not associated.image path - '/public/img/bidImagee.svg

they are not associated?

No. the data in influx has the building_id field and various values. but the images are not part of the data. I want to create the association between them,

the movement of what?

movement of a device on the building’s map.

I don’t think grafana can do that for you, you have to somehow create the association yourself

this might be something you can look into

here is the tutorial for that plugin

Yes. Currently i use businee chart for showing the movement through heatmap on image background. just want to figure out the image mapping.

1 Like

Please post your business chart js code?

@yosiasz : I was able to map the images with building names variables.Thanks for the help.