@nehamahajan,
Thanks for reporting the issue. Based on testing it looks like a bug. We’ll be fixing it in future versions.
However, as a workaround, you can set a mouseout event to the chartCotainer div and call the custom function as shown in the code-snippet below,
document.getElementById("chartContainer").addEventListener("mouseout", function() {
mouseOut();
});
Kindly take a look at this JSFiddle for an example on the same.
—
Adithya Menon
Team CanvasJS