[Chartjs]-Calling MouseLeave chartJs Angular

2👍

You can bind the event to mouseout event of the canvas.

<canvas myChart>
   [dataset] = "dataVariable"
   [labels] = "labelVariable"
   (chartHover) = "chartHover($event)"
   (mouseout) = "mouseOut($event)"
</canvas>

Component

public mouseOut(event: any){
   // set pop up open flag to false
}

Leave a comment