HighCharts image export

≯℡__Kan透↙ 提交于 2019-12-20 06:47:07

问题


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 folder and remove the save dialog pop-up to save image.

On button click image saved on the predefined folder.(No save dialog)

Thanks in advance


回答1:


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




回答2:


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)



来源:https://stackoverflow.com/questions/9277039/highcharts-image-export

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!