block by timelyportfolio 7ea26d32a7534e4064df16cbf7abaa58

vega signal from outside

Full Screen

Built with blockbuilder.org


vega is so much fun, but some things just aren’t well explained. For instance, how do we use an event stream from something outside of the vega graph? I finally figured it out, and I wanted to share with anyone who cares.

In the update expression of the event object, we have access to event. I use event.currentTarget.innerText as a hopefully understandable minimal example.

forked from timelyportfolio‘s block: vega font

index.html