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)
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.
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.
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.