Skip to main content

Power BI

New

Allow for rectangular imageUrl sizes in matrix and table visuals

Vote (71) Share
Darren Gosbell's profile image

Darren Gosbell on 30 Oct 2019 08:31:25

Currently when you use a column or measure with a category of imageUrl that has an svg image Power BI ignores the aspect ratio defined in the view box for the image and draws the image in an arbitrary square. It would be great if imageUrl would allow for rectangular images. In the case of svg this could be read from the viewbox attribute.

This would allow for the creation of dynamic databars and sparklines and other creative visualizations without having to write a full blown custom visual.

Comments (3)
Darren Gosbell's profile image Profile Picture

9000a97d c499-4c2e-86bf-9f829fb548b6 on 04 Sep 2020 08:16:57

RE: Allow for rectangular imageUrl sizes in matrix and table visuals

Agree that the ability to scale the SVG to the width of the cell would be a major improvement to this functionality. Square cells are OK for short periods but any data dense sparkline tends to get crowded quickly, e.g. COVID time series data per location.

Darren Gosbell's profile image Profile Picture

1f077a8d 35e8-ea11-a817-000d3a9b112e on 27 Aug 2020 07:25:11

RE: Allow for rectangular imageUrl sizes in matrix and table visuals

Has anyone figured a solution to the square dimensions yet? This would really be appreciated if imageURL would allow for rectangular/wider images.

Darren Gosbell's profile image Profile Picture

7c4c8544 0f6e-4f5b-8dec-025f8be04038 on 06 Jul 2020 00:01:53

RE: Allow for rectangular imageUrl sizes in matrix and table visuals

Thank you, Darren. Having the ability to render SVG sprites, icons, databars and sparklines in a table or matrix cell is awesome but as Darren mentions; there are significant limitations in its implementation. Allowing the graphic scale to the cell dimensions would improve this capability significantly.