vega-lite: adding event listener on brush

734 views
Skip to first unread message

Speros Kokenes

unread,
Apr 29, 2017, 12:57:32 PM4/29/17
to vega-js
Hi, new to vega-lite. Worked through the tutorials, now trying to see if I can get some selections working. I added a brush to the y-axis of a bar chart. I want to trigger some external javascript based on that brush. For example, I may want to know what bars are within the brush and run some external code with the data for those bars. How would I do that?

Here is a JSFiddle that has my chart set up with a brush


kent.r...@timelyportfolio.com

unread,
Apr 30, 2017, 5:41:29 PM4/30/17
to vega-js
I'd love to see an answer with best practice regarding your question.  I am not sure if relevant since vega but here is a discussion and example in vega
Reply all
Reply to author
Forward
0 new messages