interactions = [
{
type: 'native',
events: {
mousedown: function(e) {
if (e.altKey) {
this.chart.brush('lasso-example').end();
}
this.chart.component('lasso').emit('lassoStart', { center: { x: e.clientX, y: e.clientY } });
},
mousemove: function(e) {
this.chart.component('lasso').emit('lassoMove', { center: { x: e.clientX, y: e.clientY } });
},
mouseup: function(e) {
this.chart.component('lasso').emit('lassoEnd', { center: { x: e.clientX, y: e.clientY } });
}
}
}
]