Can any body help me to find out, how to print dynamic graph as example generated by flot. I tried this one but it\'s printing whole page, but I want only graph portion.
This article describes how to copy the canvas to a normal img which can then easily be printed or saved as an image. The important part:
canvas
img
img.src = canvas.toDataURL();
See the great answer below from Ignacio Correia for more details.