observablehq / vega

Convenience methods for using Vega and Vega-Lite in Observable.
https://observablehq.com
42 stars 7 forks source link

Use Vega resize handler #5

Open domoritz opened 6 years ago

domoritz commented 6 years ago

The next version of Vega will support resize handlers: https://github.com/vega/vega-view/pull/18. These can be used to automatically resize the cell when the Vega view resizes.

mbostock commented 6 years ago

Thanks! We’ve also deployed a new version of Observable that uses ResizeObserver when available, so at least in browsers that support ResizeObserver, it should work today.