--
You received this message because you are subscribed to the Google Groups "vega-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vega-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vega-js/79df8276-533f-4fa2-801f-4d983cdca1e8%40googlegroups.com.
`animationRef = React.createRef()` exposed in Jeremy's https://observablehq.com/@observablehq/how-to-embed-a-notebook-in-a-react-app or trying to inject the parents width directly in the notebook's code downloaded from observable.
You can use the new reactive container sizing in Vega-Lite 4. https://vega.github.io/vega-lite/docs/size.html#specifying-responsive-width-and-height
On Tue, Nov 12, 2019 at 4:15 AM Malik Koné <malik...@gmail.com> wrote:
--Hi,I'm trying to embed a vega-lite chart in an resizable react component.How can I get the width of the vega-lite chart to follow that of it's parent element ?At present time the vega-lite chart size follows that document.window size but not the parent element size.
You received this message because you are subscribed to the Google Groups "vega-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to veg...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vega-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vega-js/085e7636-c263-4697-9dbb-11cb2a9a77af%40googlegroups.com.