How to make pluto work with vegalite interactivity? #1521
-
|
Is there any way to make Pluto work with Interactive Vega Scripts? It seems to currently embed a static image. I'm talking about configs such as the one below: (click to view example vegalite
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can generate the In the first approach, I made a In the second approach, I avoided the additional |
Beta Was this translation helpful? Give feedback.

You can generate the
VLSpecin your notebook and get it in interactive form usingElectronDisplay. Here's your example (plus a title that can be set interactively in the notebook) done two slightly different ways:In the first approach, I made a
VLSpecusing your exact JSON string, linked theTITLE(text box) variable to it with@set, and sent it to a separate window, where the plot highlighting works exactly as expected.In the second approach, I avoided the additional
Setfielddependency by reformatting the JSON intoVegaLite.jl's DSL. I'm not sure which one I like better; they produce identical outputs.