Skip to content

How to make pluto work with vegalite interactivity? #1521

Discussion options

You must be logged in to vote

You can generate the VLSpec in your notebook and get it in interactive form using ElectronDisplay. 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 VLSpec using your exact JSON string, linked the TITLE (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 Setfield dependency by reformatting the JSON into VegaLite.jl's DSL. I'm not sure which one I like better; they produce identical outputs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by canelhasmateus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants