n be useful in some cases.</p>
<p>Below we modify the sizing policy of gio via the <code>sizingPolicy</code> argument of the <code>createWidget</code> function. The function <code>htmlwidgets::sizingPolicy</code> has many arguments, we set the default width to 100% to ensure the visualisation fills its container entirely regardless of where it is rendered. We also remove all padding by setting it to 0 and set <code>browser.fill</code> to <code>TRUE</code> so it automatically resizes the visualisation to fit