In https://github.com/vega/vega-lite/pull/2991, we support autosize: fit for layer and unit specs.
Other specs are not supported yet.
This would be a killer feature for our team. We have a requirement to keep everything within a certain externally-defined bounds and allow the user to resize it at will. Currently we are limited to using raw Vega because Vega Lite doesn't allow for this.
I agree this will be extremely useful.
Note that we didn't implement this yet because thelayout operator in Vega currently operates without interacting with autosize fit -- thus we can't implement this to works in Vega-Lite.
Supporting this will actually require a major change in Vega.
@kanitw Do you know if there is any progress on this? (Is there a vega issue that could be linked to?)
FWIW, I keep on running into this.
Nothing yet and I don't think we will get to it anytime soon. We would appreciate contributions from the community (e.g. design documents, prototypes, pull requests), though.
I am going to close this issue since we need major changes in Vega, which are tracked in https://github.com/vega/vega/issues/1444.
Suppose vega/vega#1444 is done, there is still a lot of work items to do in VL?
I'd rather only close this if we say vega/vega#1444 is a wontfix too.
Talking to @jheer it sounds like it's not even on the roadmap. And yes, we would still need to do a thing or two here.
Most helpful comment
See related: