[line] Pass the canvas object to the function onAnimationComplete

It's very usefull to get a png image from the graph after the animation.

onAnimationComplete: function(canvas){
   var png = canvas.toDataURL("image/png");
}