English 中文(简体)
是否有可能在联合图集中使用JSP JSOP的导出(服务器侧面)刺绣图?
原标题:Is it possible to Export(server-side) javascript chart using JSP in FusionCharts?

在我的托马特容器里,我创建了一个JSP页面, 我用纯 JavaScript 绘制一张图表。

现在我要用像核聚变图这样的服务器端出口技术来导出这个 JavaScript 转换的图表。 我在我的托姆卡特容器中都有需要的罐子文件, 用于 Java EE( FCExporter.jar 等) 的这项出口功能 。

最佳回答

I got the Answer. I have created the Servlet and passing request to that servlet in tomcat container from JS..

<"chart exportEnabled="1" exportAction="Save" exportAtClient="0" 
    html5ExportHandler="http://localhost:8085/FusionCharts_J2EE/JSP/ExportExample/IMGExporter" 
    caption="Brand Winner" yAxisName="Brand Value ($ m)" 
    xAxisName="Brand" bgColor="F1F1F1" showValues="0" canvasBorderThickness="1" 
    canvasBorderColor="999999" plotFillAngle="330" plotBorderColor="999999" 
    showAlternateVGridColor="1" divLineAlpha="0">

在 servg 服务器中。 我得到了 svg 参数。 with

request.getparameter("svg");

并且按照命令,我产生了聚变图的jpeg...

java -jar batik-rasterizer.jar -d D: -m image/jpeg samples/out.svg

万岁...

问题回答

有了一些节奏,这是可能的。

请阅读:http://docs.uncluccharts.com/charts/contents/?Export-image/ECPureJS.html#ownserver

[部分: 设置您自己的服务器来处理和导出 JavaScript 图表]

这将指示您如何设置您自己的服务器, 用于服务器端导出 JS 图表 。

嗯,你需要有一个php运行 在你的服务器上运行 并下载batik罐 如上面列出的步骤。

设置后, 编辑 index.php (导出) 文件, 将生成的图像保存到服务器位置 。

如果您没有 php, 您需要写入 Java EE 代码, 才能完成索引. php 所做的相同工作 。

[一段时间后加]

如果您不想使用任何客户端介面, 而不是静默服务器侧端创建图表图像, 您可以跟随 http:// fcimg. org/" rel=" no follow" > http:// fcimg. org/





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签