Legend Events
Description: How to attach events with Legend to interact with DataSeries and DataPoints in Cosfire Chart.
The following Mouse events can be attached with Legend to interact with DataSeries and DataPoints in Cosfire Chart


mousedown
                                    
chart.on('mousedown', 'legend', function (dataSeries, dataPoint) {
    console.log('mousedown fired on', 'legend', dataSeries, dataPoint);
});
                                    
                                
mouseup
                                    
chart.on('mouseup', 'legend', function (dataSeries, dataPoint) {
    console.log('mouseup fired on', 'legend', dataSeries, dataPoint);
});
                                    
                                
mousein
                                    
chart.on('mousein', 'legend', function (dataSeries, dataPoint) {
    console.log('mousein fired on', 'legend', dataSeries, dataPoint);
});
                                    
                                
mouseout
                                    
chart.on('mouseout', 'legend', function (dataSeries, dataPoint) {
    console.log('mouseout fired on', 'legend', dataSeries, dataPoint);
});
                                    
                                
mousemove
                                    
chart.on('mousemove', 'legend', function (dataSeries, dataPoint) {
    console.log('mousemove fired on', 'legend', dataSeries, dataPoint);
});