DataSeries & DataPoint Events
Description: How to attach events on DataSeries and DataPoints
The following Mouse events can be attached with DataSeries and DataPoints in Cosfire Chart


mousedown
                                    
chart.on('mousedown', 'data', function (dataSeries, dataPoint, index, sender, e) {
    console.log('mousedown fired for DataPont having xLabel=' + dataPoint.xLabel);
});
                                    
                                
mouseup
                                    
chart.on('mouseup', 'data', function (dataSeries, dataPoint, index, sender, e) {
    console.log('mouseup fired for DataPont having xLabel=' + dataPoint.xLabel);
});
                                    
                                
mousein
                                    
chart.on('mousein', 'data', function (dataSeries, dataPoint, index, sender, e) {
    console.log('mousein fired for DataPont having xLabel=' + dataPoint.xLabel);
});
                                    
                                
mouseout
                                    
chart.on('mouseout', 'data', function (dataSeries, dataPoint, index, sender, e) {
    console.log('mouseout fired for DataPont having xLabel=' + dataPoint.xLabel);
});
                                    
                                
mousemove
                                    
chart.on('mousemove', 'data', function (dataSeries, dataPoint, index, sender, e) {
    console.log('mousemove fired for DataPont having xLabel=' + dataPoint.xLabel);
});