The PNG image generated by D3 Javascript library is bad, as shown in the picture below:
Where as the SVG picture generated by D3 Javascript on HTML page is good, as shown in the picture below: [![enter image description here][2]][2]
Following is the image generated by the d3 library on the html page. [2]: https://i.stack.imgur.com/lPHI2.png
My question is what settings need to be made so that downloaded image is also good(as seen on the html page)