HighCharts image export

后端 未结 2 1493
青春惊慌失措
青春惊慌失措 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: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

提交回复
热议问题