Skip to content
Christopher Small edited this page Oct 15, 2021 · 2 revisions

How to export to png

(oz/export! plot "outfile.png")

How to reactively update parts of a React/Reagent app using vega/vega-lite signal/data state

The cljs oz/vega and oz/vega-lite components accept a 2-arg form (like [oz/vega view-spec opts]), where opts may contain a :view-callback entry specifying a function that should be called on the Vega View object corresponding to the visualization once instantiated. This let's you take advantage the entire View API, including the view.addSignalListener method, which lets you attach a listener function for changes to a specific Vega signal.