I need some help with saving my created JSXGraph to an .svg file.
I found this answer:
"To export the mathlet to SVG we are going to use the XMLSerializer:
var svg = new XMLSerializer().serializeToString(board.renderer.svgRoot);
This will get you the whole SVG tree you can save in a .svg file."
But I don't know how to "save in an .svg file" ?
Possibly the answer is very basic, as I am new to js.
I would greatly appreciate if someone could help me with that.
I attached my files. Maybe this can help to understand what I want. I want to to save the rendered graph as an .svg file.
Thank you in advance for any help,
Mireille