Skip to content

Commit

Permalink
Wicket Google Charts for loader based API (#608)
Browse files Browse the repository at this point in the history
* First suggestion for Pull request.

* First suggestion of gchart for Pull request.

* Used milliseconds for JS new Date(). Dropped wicket core dependency.

* Dropped wicket core dependency.

* Removed unneccessary freemarker template.

* Removed Copyright and System.out. Pom cleanup. Small changes in reaction to Martin Grigorov's remarks.

* Changed package name of example's test.
  • Loading branch information
Dieter Tremel authored and martin-g committed Sep 21, 2017
1 parent d94b763 commit 86a3b93
Show file tree
Hide file tree
Showing 54 changed files with 4,737 additions and 0 deletions.
74 changes: 74 additions & 0 deletions gchart-parent/gchart-examples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>


<parent>
<artifactId>wicket-gchart-parent</artifactId>
<groupId>org.wicketstuff</groupId>
<version>7.0-SNAPSHOT</version>
</parent>
<artifactId>wicket-gchart-examples</artifactId>
<packaging>war</packaging>

<name>wicket-gchart-examples</name>
<description>Examples for use of Google Charts.</description>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>

<!-- LOGGING DEPENDENCIES -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- JUNIT DEPENDENCY FOR TESTING -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<!-- JETTY DEPENDENCIES FOR TESTING -->
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>wicket-gchart</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<head>
<meta charset="utf-8" />
<title>Apache Wicket Google Charts Test</title>
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="Stylesheet" />
</head>
<body>
<h2>Test of Google Charts adaption</h2>
<p>
This demo uses wicket-gchart, a simple combination of wicket and Google Charts.
</p>

<div class="gchart" wicket:id="chartPie"></div>
<div class="gchart" wicket:id="chartLine"></div>
<div class="gchart" wicket:id="chartDualLine"></div>
<div class="checkDiv"><label><input type="checkbox" wicket:id="stackedPercent" />Stacked percent</label></div>
<div wicket:id="barContainer"><div class="gchart" wicket:id="chartBar"></div></div>

<p>
After the charts.
</p>
</body>
</html>
Loading

0 comments on commit 86a3b93

Please sign in to comment.