0
votes

I am using angular nvd3 chart for plotting data on charts. I need to export my chart as pdf/png. tried with jdPDF. But It is not rendering css. Can anyone help me out this?

1
add the code which you have tried - Aravind
nvd3 is wrapper over d3. Possible duplicate of stackoverflow.com/questions/16049538/… - sandyJoshi

1 Answers

0
votes

Nvd3 does not come with export functionality. There are three ways which you can do,

(i) Conver the element into SVG, send SVG to Server , convert it to PNG and generate link to download using PhantomJS

(ii) Convert SVG to html5 canvas , then convert canvas to PNG and download it using saveSvgAsPng

Example here