Setting Up ZK Charts"

From Documentation
Line 7: Line 7:
 
* Downloaded ZK 7 from [http://www.zkoss.org/download/zk.dsp].
 
* Downloaded ZK 7 from [http://www.zkoss.org/download/zk.dsp].
  
== Installing the Libraries ==
+
=== Installing the Libraries ===
  
There are two ways to install ZK Charts.
 
  
=== To install with maven ===
+
Depending on your IDE the steps will differ, however the most important part is both ZK Charts and ZK’s JAR files are included in your project. The project should be a ZK Project or a Web Application Project depending on what environment you are using. Then place the charts jar under '''WEB-INF/lib''' folder.
Add the dependency setting to pom.xml, see <ref>[[ZK_Installation_Guide/Setting_up_IDE/Maven/Resolving_ZK_Framework_Artifacts_via_Maven | Resolving ZK Framework Artifacts via Maven ]]</ref> for more information.
+
 
 +
The easiest way to create a compatible project is to use [http://www.zkoss.org/download/zkstudio.dsp ZK Studio] and then include charts.jar as a library
 +
 
 +
=== Maven Project ===
 +
 
 +
 
 +
If your project is managed by Maven already, you can adopt ZK Chart easily by simply adding a dependency<ref>If you didn't setup zk maven repository yet, you have to [[ZK_Installation_Guide/Setting_up_IDE/Maven/Use_ZK_Maven_Artifacts/Resolving_ZK_Framework_Artifacts_via_Maven#How_to_Use_ZK_Maven_Repository | setup zk maven repository]] too.</ref>
 +
 
 +
Add the following dependency:
  
 
<source lang="xml" line="false>
 
<source lang="xml" line="false>
Line 22: Line 29:
 
</source>
 
</source>
  
=== To install with jar file ===
+
<blockquote>
Just place the charts jar under WEB-INF/lib at your web application project's folder, see <ref>[[ZK_Installation_Guide/Quick_Start/Create_and_Run_Your_First_ZK_Application_Manually | Create and Run Your First ZK Application Manually]]</ref> for more information.
+
----
 +
<references/>
 +
</blockquote>
  
 
== Reference ==
 
== Reference ==

Revision as of 15:33, 5 March 2014


WarningTriangle-32x32.png This page is under construction, so we cannot guarantee the accuracy of the content!

Prerequisites

  • Downloaded ZK 7 from [1].

Installing the Libraries

Depending on your IDE the steps will differ, however the most important part is both ZK Charts and ZK’s JAR files are included in your project. The project should be a ZK Project or a Web Application Project depending on what environment you are using. Then place the charts jar under WEB-INF/lib folder.

The easiest way to create a compatible project is to use ZK Studio and then include charts.jar as a library

Maven Project

If your project is managed by Maven already, you can adopt ZK Chart easily by simply adding a dependency[1]

Add the following dependency:

1     <dependency>
2 	    <groupId>org.zkoss.chart</groupId>
3 	    <artifactId>charts</artifactId>
4 	    <version>1.0.0</version>
5 	</dependency>

  1. If you didn't setup zk maven repository yet, you have to setup zk maven repository too.

Reference


< Get Complete Source Code of This Book >


Last Update : 2014/03/05

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.