Open mapringg opened 3 years ago
I use a similar method with Vega
component and have similar issue when I use vconcat
oh hconcat
in a vega-lite spec.
@mapringg as a workaround I replace my Vega-Lite spec with its Vega compiled version (with a Vega
component you can use either Vega or Vega-Lite spec).
Surprisingly, resizing is then possible.
Vega-Lite just compiles to Vega so the behavior should be exactly the same.
The code below allows me to resize, but it fails if I use any graph that have a column property. Also, I feel like my current method is very hacky and may not be the correct method for resizing.
Update: Updating the width and height props of the vega lite component does not trigger a rerender, but an update to spec does.