4 ms·
Thanks there! I agree, I was heavily inspired by the Mathematica solution and after looking at Dan's D3 JS code I knew a simple UI was finally possible so I mad
by imkevinxu 14y ago
Thanks there! I agree, I was heavily inspired by the Mathematica solution and after looking at Dan's D3 JS code I knew a simple UI was finally possible so I made it all last night.
Ideally I'd like to be able to export the d3 graphs as images, any idea on how to do that?
- eranation 14y agoI'm sure you looked at the same articles, and found it surprising there is no easy way apparently. but a brute force way will be to send the final SVG / Canvas to the server side and render it there? EDIT: this seems like a nice approach: http://stackoverflow.com/questions/4912092/using-html5-canvas-javascript-to-take-screenshots http://stackoverflow.com/questions/4912092/using-html5-canva...
- baconner 14y agoI've been having a lot of success with phantom.js for converting browser rendered svg to various formats. I imagine there are a ton of svg>image options but phantom is nice in that its nearly WYSIWYG output vs chrome.
- eric_bullington 14y agoI've not yet tried it, but check out this: https://github.com/sampumon/SVG.toDataURL https://github.com/sampumon/SVG.toDataURL Which apparently originates from this paper: http://svgopen.org/2010/papers/62-From_SVG_to_Canvas_and_Back/#experimenting http://svgopen.org/2010/papers/62-From_SVG_to_Canvas_and_Bac...
- imkevinxu 14y agoThanks! Will look into it.
- enjalot 14y agoanother client side option is canvg http://code.google.com/p/canvg/ http://code.google.com/p/canvg/ which is more wrapping around a dataURL.