Deneb Chart labels cut by Autowidth

Hello,
I have this issue mostly with my lollipop charts, for which I am adding a text mark to the end of circle mark with some information about the data.
The autowidth for the chart is cutting the label that is to the far right - as per screenshot:
image

I have tried to give the width some combination of the pbiContainerWidth plus x pixels but I get the error message that “width” expects a number.
Is there a way in Vega-lite to make the width link to the pbiContainerWidth “transformed” plus some pixels, instead of having to hard code the width of the chart?
Thanks! Attached is an example .pbix
DENEB width question.pbix (2.3 MB)

Hi @valeriabreveglieri.

There seems to be something in the way Vega-Lite recalculates the size of a visual after resizing in Power BI. I had some success by adding an “autosize” block, turning the “preview area” scollbars on, and setting the scrollbar colour to white and scrollbar opacity to 20%.


(I have not yet explored the new “pbiContainer” property introduced in Deneb 1.7 so cannot comment.)

Hope this helps.
Greg
eDNA Forum - Deneb AutoWidth.pbix (2.3 MB)

1 Like

thanks Greg! This works. Kind regards, Valeria