1

I am creating chart using highcharts and rails, i want to save chart under app/assets/image/ folder

1 Answer 1

1

There are few ways you can convert your map to image which are listed below. To save image in your application you need to use carrierwave or file handling option.

You can do it with direct html2canvas conversion:

http://html2canvas.hertzen.com/examples.html

Highchart also provide way to export image :

http://www.highcharts.com/docs/export-module/export-module-overview http://api.highcharts.com/highcharts#exporting.buttons.contextButton.onclick

Rails gem that uses wkhtmltoimage for image conversion:

https://github.com/csquared/IMGKit

1
  • the example in the jsfiddle is asking for the path to save write?we want to take the path automatically
    – lucifer
    Jan 14, 2015 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.