sjkp / heatmap

The PowerBI Heatmap Visual enables users to draw a heatmap overlay from a X, Y coordinate set on to an existing image. The user specify the image, and provide a data set of X, Y coordinates and optionally an intensity for each data point. The radius and the bluriness of the heatmap bubbles can be customized as well as the max value for the intensity.
20 stars 7 forks source link

Why is MaxWidth and MaxHeight #2

Closed niels9001 closed 6 years ago

niels9001 commented 7 years ago

I'm trying to use the .pbiviz file, but in PowerBI I can't set the MaxWidth and MaxHeight. This basically results in the heatmap stopping at around 50% for me.

I can see in the source code that these parameters have been commented out. Any idea why this is?

sjkp commented 7 years ago

It reads it from the image size. So you should set an background image that have the dimension of your data, or alternatively scale your datapoints to fit your background image. I removed the settings to make it more user friend.

niels9001 commented 7 years ago

I see.. Problem is, Power BI only support images that are not larger than 1280 pixels (it will not fit on the screen otherwise). Also, in my case I might have different image sizes (especially different resolutions for different phones). Using a percentage as X/Y coordinates and Width and Height as parameters would solve this I think.

sjkp commented 7 years ago

You can still use an image that any size e..g. 2000x2000 if you want, it is scaled to the size of the visual. The image should just align with your data.