Tutorial: Create Interactive Custom Charts
Introduction
Interactive features like Cross-filter and Drill-through are now available to Custom Charts too. To enable this feature, you will need to declare your user interaction (or "Signal", as Vega-lite calls it) in your chart definition so that your Custom Chart can listen for those interactions.
For example, if you want select an interval/ range of data in the chart by dragging your mouse, simply an "Interval" interaction. Your chart will be able to listen for the dragging motion.
Selection Types
Point selection (click selection)
You can read more about point selection in Vega-lite docs here: https://vega.github.io/vega-lite/docs/parameter.html#select.
Point selection happens when a user selects a value (by Left Click), or a range of value (by holding Shift then Left Click) on your chart.
To deselect, a user would need to Left Click once more time on the selected values.

Interval selection
Interval selection happens when a user creates selection by holding Left Click then dragging it across their chosen values.
To deselect, a user would need to Double Click on anywhere in the chart.