mousemove: Function

Sets the mousemove event handler for dataSeries which is triggered when user Moves mouse on a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event.

Default: null
Example: mousemove: function(e){   alert( e.dataSeries.type+ “, dataPoint { x:” + e.dataPoint.x + “, y: “+ e.dataPoint.y + ” }” );   },
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{

    mousemove: function(e){
     alert(  e.dataSeries.type+ ", dataPoint { x:" + e.dataPoint.x + ", y: "+ e.dataPoint.y + " }" );
    },

 },
]
 .
 .
});
chart.render();

Event Object

e:{ 
	x, 
	y,
        chart,
	dataPoint, 
	dataSeries, 
	dataPointIndex, 
	dataSeriesIndex
}


Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question