@mhdajmalik,
I recommend you to use the latest version of CanvasJS – v2.2. Please check out our release blog for more information.
If you are still facing the issue in the latest version, kindly provide the browser details and share a JSFiddle reproducing the issue you are facing so that we can understand your scenario better and help you out.
__
Priyanka M S
Team CanvasJS