Is there a way to allow a user, after he has created a vector graph on a javascript svg canvas using a browser, to download this file to their local filesystem?
You can't save anything with javascript to the local filesystem, what you should do is send the contents of the canvas to the server and make the user download and save that.