HighCharts图像导出 [英] HighCharts image export

查看:80
本文介绍了HighCharts图像导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用HighChart。
我想在一个按钮上单击导出图表图像,例如 http://jsfiddle.net/hfrntt / fXHB5 / 1896 /
但我想将图像保存在预定义文件夹中,并删除保存对话框弹出窗口以保存图像。

在按钮上单击保存在预定义文件夹中的图像。(不保存对话框)



提前致谢 必须设置一个导出服务器。当客户端将Highcharts SVG文件发送到该服务时,它将被转换为图像。在服务器将图像返回给客户端之前,您可以将其保存到预定义的文件系统。



在这里您可以找到一个php导出服务器和一个基于java的导出服务器。 https://github.com/highslide-software/highcharts.com / tree / master / exporting-server



这些导出服务器用于删除临时创建的文件。你必须稍微改变一下代码以防止这种情况发生。

Highcharts exportservers


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

解决方案

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

这篇关于HighCharts图像导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆