I'm using highcharts to create SVG charts. So, the chart is shown in the frontend, with an svg
HTML tag.
Now I want to export that chart as an SVG file.
My effort
Since the SVG is generated purely in the frontend, the backend knows nothing about it. And if I want to initialize a download with some content, what I know about it is to make an HTTP response with the content.
So I can simply grab the SVG content as a string, then upload it with an HTTP request, then response the content as it was.
I want it better
I think there is logically no need to transfer by such a way, because the frontend knows everything we want.
I turned for your help: Is it possible to initialize a download in the frontend?