Preferably I would have the download "button" as part of the svg. I am very new to d3.js but basically I am looking for a possible fix / alternative for client side d3.js svg download in Firefox. It is given to those having a deficiency of this vitamin due to familial (occurring in the family) or environmental reasons. It helps in the absorption of calcium and phosphates from your childs bowel, which keeps their bones and teeth healthy. I don't know if I am on the right track here. D-Sol Drops acts as a supplement for infants and children suffering from vitamin D3 deficiency. ![]() The svg only draws the rectangle should allow you to download the svg (with the rectangle) as an. I was thinking that instead of supplying a download button, clicking a certain svg-element should also do? I currently have the following code but it doesn't work: var svg = d3.select(elementid).append("svg") Which should download the svg (if I could get it to work). Use the download attribute (or a shim) to provide a link ![]() Var imgData = 'data:image/svg+xml base64,' + btoa(xmlString) Var xmlString = rializeToString(d3.select('svg').node()) ![]() I also found the following code: //Encode the SVG I have been lookig around for a way to download the generated svg from d3.js and I either end up with phantom.js which seems kinda overkill (or at least intimidating given the "simplicity" of the problem) or svg-crowbar.js which is apparently only for chrome (I need firefox).
0 Comments
Leave a Reply. |