-
This might be actually more like a generic canvas question. I want to save the d3 network graph as image. As we all know, network graph can become very big, and nodes and texts become very small. But somehow for reporting purpose, client wants to print them out on some big paper and stick on wall for discussion. Due to high number of nodes, we also opt for canvas instead of SVG for performance purpose. And this create a common problem when trying to save the canvas as image, it gets pixelated when zoom in. Is there any solution to this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nvm, found a workaround. I end up resizing the actual canvas on the screen, then redraw, then canvas.toDataURL(). Then revert the size after downloading image. |
Beta Was this translation helpful? Give feedback.
Nvm, found a workaround. I end up resizing the actual canvas on the screen, then redraw, then canvas.toDataURL(). Then revert the size after downloading image.