#Steps to build the Highcharts Server application for Java#
###Prerequisites###
The java based Highcharts export-server has the following prerequisites:
- installed an application server (for example: Apache Tomcat, Jboss, TC server, jetty for development)
- installed Java 1.6 or later
- installed Maven 2 or later
- installed Phantom on the server, <a href="https://github.com/highslide-software/highcharts.com/blob/master/exporting-server/phantomjs/readme.md">see here</a> This isn't required when you don't want to create graphs serverside
###Configuration###
- Edit the app.properties file in <a href="https://github.com/highslide-software/highcharts.com/blob/master/exporting-server/java/highcharts-export/src/main/webapp/WEB-INF/spring/app.properties">highcharts-export/src/main/webapp/WEB-INF/spring/app.properties</a> and change the <pre>webapp.url=http://my.exportserver.com</pre> property to the url for of your export-server
- Do the same for dev.properties and prod.properties in highcharts-export/src/main/properties. With these properties you can compile the project for development- or production environment. You can do this with specifying the right profile during compiling.
mvn clean package -Pproduction
or for during development
mvn clean package -Pdevelopment
- Specify the location of PhantomJS and the highcharts-convert script in the SVGCreator.java file. This is found here: <a href="https://github.com/highslide-software/highcharts.com/blob/master/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/SVGCreator.java">highcharts-export/src/main/java/com/highcharts/export/util/SVGCreator.java</a> change these lines:
private final String PHANTOM_EXEC = "/usr/local/bin/phantomjs";
private String PHANTOM_SCRIPT = "highcharts-convert.js";
-You can change the name of the script, but it's expected to be in this folder: highcharts-export/src/main/webapp/WEB-INF/phantomjs/
###Building a .war file###
Now you have configured the application, such that it's pointing to your new Highcharts export-server, you can compile the project files. Browse to the Highchart-Export folder and while standing here type the following in a terminal: <ul style="list-style-type:none"><li><pre>mvn clean package -Pproduction</pre></li></ul>
After compiling you will find a highcharts-export.war residing in the target folder. Upload/copy this to the application server.
###Testing###
We supplied the <a hre="http://jetty.codehaus.org/jetty/">Jetty Server</a> dependency in pom.xml file. For running the export-server locally during development or testing, fire the command:
mvn jetty:run
The application is then accessible at http://localhost:8080/highcharts-export.
###Good to know###
- Change you url configuration in the exporting option, and point it to the new installed exporting-server.
<pre><code>exporting:{
url:'http://new.server.com/highcharts-export'
}</code></pre>
- When using this application in a non SUN-java environment, it's necessary to change the property-files in: .m2/repository/org/apache/xmlgraphics/batik-codec/1.7/batik-codec.jar/META-INF/services</p>
- Install necessary fonts on the server. Install them on the server, Batik will pick them up there.</p>
没有合适的资源?快使用搜索试试~ 我知道了~
漂亮的统计图表,flash统计图表,json统计图表,网页统计图表
共145个文件
htm:60个
js:46个
java:5个
需积分: 9 25 下载量 69 浏览量
2013-12-10
10:29:08
上传
评论
收藏 580KB RAR 举报
温馨提示
Highcharts-3.0.1,漂亮的统计图表,flash统计图表,json统计图表,网页统计图表,web统计图表
资源推荐
资源详情
资源评论
收起资源包目录
漂亮的统计图表,flash统计图表,json统计图表,网页统计图表 (145个子文件)
org.eclipse.wst.jsdt.ui.superType.container 49B
codemirror.css 5KB
demo.css 2KB
dialog.css 449B
simple-hint.css 368B
index.htm 18KB
index2.htm 13KB
index.htm 13KB
index.htm 12KB
index.htm 10KB
index.htm 7KB
index.htm 5KB
index.htm 5KB
index.htm 5KB
index.htm 5KB
index.htm 5KB
index.htm 5KB
index.htm 4KB
index.htm 4KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 3KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index-bg.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index2.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 2KB
index.htm 1KB
index.htm 1KB
index.htm 1KB
index.htm 1KB
index.htm 1KB
index.htm 1KB
index.htm 1KB
demo.html 16KB
index.html 3KB
index.html 2KB
typescript.html 1KB
ExportController.java 7KB
SVGCreator.java 4KB
SVGRasterizer.java 3KB
MimeType.java 755B
SVGRasterizerException.java 595B
skies.jpg 42KB
highcharts.src.js 416KB
highstock.js 148KB
highcharts.js 131KB
codemirror.js 127KB
canvas-tools.src.js 98KB
jquery-1.8.2.min.js 91KB
canvas-tools.js 57KB
highcharts-more.js 21KB
exporting.src.js 17KB
javascript.js 14KB
data.src.js 14KB
highcharts-more.js 13KB
highcharts-convert.js 10KB
xml.js 10KB
highcharts-convert.js 9KB
prototype-adapter.src.js 9KB
mootools-adapter.src.js 8KB
formatting.js 7KB
exporting.js 7KB
funnel.src.js 6KB
foldcode.js 6KB
javascript-hint.js 5KB
closetag.js 5KB
pig-hint.js 5KB
search.js 5KB
共 145 条
- 1
- 2
资源评论
renjx
- 粉丝: 1
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功