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
https://unpkg.com/d3
https://unpkg.com/vega/build/vega-core.js