HighCharts image export

后端 未结 2 1472
青春惊慌失措
青春惊慌失措 2021-01-27 13:44

I am using HighChart in my application. I want to export chart image on a button click like http://jsfiddle.net/hfrntt/fXHB5/1896/. but i want to save image in a predefined fold

相关标签:
2条回答
  • 2021-01-27 14:11

    This is going to involve much more than simply using highcharts. You are going to have to use some sort of wrapper that will actually render the chart/page on the server-side and then essentially output it as an image. The following are links taken from a post on the highcharts website.

    GWT Highcharts wrapper

    Highcharts-server-side-export (with Rhino/Batik)

    0 讨论(0)
  • 2021-01-27 14:26

    You have to setup an exportserver. Upon the client sends the Highcharts SVG file to this service it will be converted to an image. Before the server returns the image to the client you can save it to the predefined filesystem.

    Here you can find a php export server and a java based one. https://github.com/highslide-software/highcharts.com/tree/master/exporting-server developed by Highcharts

    These exportservers are setup to remove the temporary created files. You have to change the code a bit to prevent this.

    read also this article for more background information on Highcharts exportservers

    0 讨论(0)
提交回复
热议问题