What's the proper way to implement a custom click handler in vega-lite
问题 I don't seem to be able to figure this out by reading the docs. Is there a way to implement a onClick event handler for any of my marks? 回答1: Since Vega-Lite does not yet have support for signals, you could patch the generated Vega. You can add a signal to the compiled Vega spec and then add a signal listener through the Vega view API. You can patch the generated Vega with the patch option in Vega-Embed. <!DOCTYPE html> <head> <meta charset="utf-8"> <script src="https://cdn.jsdelivr.net/npm