Embedding in cljs/react/reagent app #166
-
The docs say:
Is this the current state of things? Is it possible to embed an interactivevega-lite visualizations into a cljs app such that it can react to the app and vice versa? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Ramblurr. Thanks for asking about this, and sorry for just not getting around to responding sooner. The answer to this is a little complicated, so I'm moving this issue to a discussion, and will be forking off some issues from it. It's been for quite a while possible for the vega visualization to respond to changes in react/reagent state (just use the On the flip side, in order to have the rest of a reagent app react to visualization events, there's no way around needed access to the view api (note This issue (#167) has now been resolved with 747187e, and has been released as I think there is still a lot of room for more convenient access to this kind of functionality. Some additional
I'll open up issues for these optimizations (#13 kind of exists, but misses the mark a bit), and update here. But in the mean time, please chime in here if you have any feedback about what any of this might look like, or if there are any questions about how things might work (or could be facilitated currently with the new Thanks again! |
Beta Was this translation helpful? Give feedback.
Hi @Ramblurr. Thanks for asking about this, and sorry for just not getting around to responding sooner.
The answer to this is a little complicated, so I'm moving this issue to a discussion, and will be forking off some issues from it.
It's been for quite a while possible for the vega visualization to respond to changes in react/reagent state (just use the
oz/vega
andoz/vega-lite
reagent components as usual, basically). The downside of this is that it does require complete rerendering the visualization, which for larger datasets where just one or two data points (or other signal data) needs to change, could incur a more significant performance cost than we'd like. The vega view api does o…