-1

I am working on an application where i need to show the data in graph's like(line,bar,scatter,..etc) I want to give an option to user to download the Image(i.e. Graph) to PNG or PDF?

How can i achive this?

I am using nvd3 Charts to generate the Graphs..

Thaks for the help in Advance.

Seshi
  • 1
  • 1
  • 1
    [Google charts](https://developers.google.com/chart/) provide [getImageURI()](https://developers.google.com/chart/interactive/docs/printing) and are easy to use – WhiteHat Jan 04 '16 at 13:05
  • Does nvd3 Charts have an export option? If you can export the data to a pdf/png in base64 encoded string or blob/binary array, then yes. – Musa Jan 04 '16 at 13:05
  • Encode base64 and store in a [Data URI](https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs) as the `href` of a link. – Johannes Jander Jan 04 '16 at 13:07
  • See: http://stackoverflow.com/questions/21043376/how-to-export-nvd3-charts-to-jpeg-or-png-format – freedomn-m Jan 04 '16 at 14:05
  • @–WhiteHat..but I am working with the Nvd3Charts.. – Seshi Jan 05 '16 at 05:09

1 Answers1

0

The following URl Resolves My Question..For your reference here i am posting the jsfiddle link

http://jsfiddle.net/sbrickner/5VZvL/

Thankse

Seshi
  • 1
  • 1