I am using D3 to produce an svg element with a graph on it.
What I am trying to achieve is to save my SVG element to a PNG file locally through the browser.
I am wanting it to save the svg as a png locally when the user clicks the save button
I have tried to use:
https://github.com/exupero/saveSvgAsPng
But get the error:
Error: Failed to execute 'querySelectorAll' on 'Element': '[ng:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak, .ng-hide' is not a valid selector.
I have read other SO questions regarding the issue, but they don't make full sense to me.
Any help would be good.