mouseout: Function

Sets the mouseout event handler for dataSeries which is triggered when user moves mouse out of 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: mouseout: function(e){   alert( e.dataSeries.type+ “, dataPoint { x:” + e.dataPoint.x + “, y: “+ e.dataPoint.y + ” }” );   },
  1. var chart = new CanvasJS.Chart("container",
  2. {
  3. .
  4. .
  5. data: [{
  6.  
  7. mouseout: function(e){
  8. alert( e.dataSeries.type+ ", dataPoint { x:" + e.dataPoint.x + ", y: "+ e.dataPoint.y + " }" );
  9. },
  10.  
  11. },
  12. ]
  13. .
  14. .
  15. });
  16. chart.render();

Event Object

  1. e:{
  2. x,
  3. y,
  4. chart,
  5. dataPoint,
  6. dataSeries,
  7. dataPointIndex,
  8. dataSeriesIndex
  9. }
  10.  

Try Editing The Code

  Also See:    


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