Skip to content

Commit

Permalink
docs: document autosizing behavior (#7097)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Dec 19, 2020
1 parent f4ad7c8 commit 9b27d2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/docs/view/size.md
Expand Up @@ -69,6 +69,8 @@ For a discrete x-field or discrete y-field, we can also set `width` (or `height`

The specified dimensions of a chart as explained above set the size of the data rectangle (plotting) dimensions. You can override this behavior by setting the autosize property in [the top level specification](spec.html#top-level). Please note the [limitations below](#limitations).

Note that for performance reasons Vega-Lite doesn't re-calculate layouts on every view change by default. If your view is cut off after the view updates, you can either set `resize` to `true` or manually call `view.resize()` through the [Vega view API](https://vega.github.io/vega/docs/api/view/#view_resize).

The autosize property can be a string or an object with the following properties:

{% include table.html props="type,resize,contains" source="AutoSizeParams" %}
Expand Down

0 comments on commit 9b27d2d

Please sign in to comment.