Altair expand width to available horizontal space
I'm trying to get my altair chart to expand to the available width.
Gives a fixed width chart taking up about half the available space
With
.properties(width="container")
, which according to altair docs should make the figure expand to the available width, the figure is reduced to zero width.
1 Reply
i've managed to do it by changing vegalite.vue
and then add css:
the width is the width of the axes so you need some buffer for labels/legends
@MaartenBreddels perhaps the
VegaLite
class can take a classes argument?
ok i found that there is already the vega-embed css class 🙂