Skip to content

Commit 4d1665d

Browse files
authored
Merge pull request #12 from GwtMaterialDesign/release_2.4.0
Release 2.4.0
2 parents 09caa98 + 4059c4e commit 4d1665d

File tree

245 files changed

+5589
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+5589
-102
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ cache:
88
- $HOME/.m2
99
before_install:
1010
# install the gwt-material-jquery library
11-
- git clone -b release_2.3 https://github.com/GwtMaterialDesign/gwt-material-jquery.git
11+
- git clone -b release_2.4.0 https://github.com/GwtMaterialDesign/gwt-material-jquery.git
1212
- cd gwt-material-jquery
1313
- mvn install -DskipTests=true -DdryRun=true
1414
- cd ..
1515
# install the gwt-material library
16-
- git clone -b release_2.3 https://github.com/GwtMaterialDesign/gwt-material.git
16+
- git clone -b release_2.4.0 https://github.com/GwtMaterialDesign/gwt-material.git
1717
- cd gwt-material
1818
- mvn install -DskipTests=true -DdryRun=true
1919
- cd ..

.utility/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -ev
3-
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.3" ]; then
3+
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.4.0" ]; then
44
echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
55
mvn deploy --settings ~/settings.xml
66
fi

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ AmCharts V4 Official Documentation can be found [here](https://www.amcharts.com/
1313

1414

1515
## Maven
16-
### Current Version 2.3.0
16+
### Current Version 2.4.0-rc1
1717
```xml
1818
<dependency>
1919
<groupId>com.github.gwtmaterialdesign</groupId>
2020
<artifactId>gwt-material-am4charts</artifactId>
21-
<version>2.3.0</version>
21+
<version>2.4.0-rc1</version>
2222
</dependency>
2323
```
2424

gwt-material-am4charts.iml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" version="4">
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="gwt" name="GWT">
55
<configuration>
@@ -13,6 +13,15 @@
1313
<module name="gwt.material.design.amcore.GwtMaterialAmCore" enabled="false" />
1414
<module name="gwt.material.design.ammaps.GwtMaterialAmMaps" enabled="false" />
1515
<module name="gwt.material.design.ammaps.GwtMaterialAmMapsBase" enabled="false" />
16+
<module name="gwt.material.design.amplugin.annotation.Annotation" enabled="false" />
17+
<module name="gwt.material.design.amplugin.bullets.Bullets" enabled="false" />
18+
<module name="gwt.material.design.amplugin.forcedirected.ForceDirected" enabled="false" />
19+
<module name="gwt.material.design.amplugin.overlapbuster.OverlapBuster" enabled="false" />
20+
<module name="gwt.material.design.amplugin.regression.Regression" enabled="false" />
21+
<module name="gwt.material.design.amplugin.slicegrouper.SliceGrouper" enabled="false" />
22+
<module name="gwt.material.design.amplugin.sunburst.Sunburst" enabled="false" />
23+
<module name="gwt.material.design.amplugin.timeline.Timeline" enabled="false" />
24+
<module name="gwt.material.design.amplugin.wordcloud.WordCloud" enabled="false" />
1625
</packaging>
1726
</configuration>
1827
</facet>
@@ -27,6 +36,7 @@
2736
</content>
2837
<orderEntry type="inheritedJdk" />
2938
<orderEntry type="sourceFolder" forTests="false" />
39+
<orderEntry type="library" name="Maven: com.github.gwtmaterialdesign:gwt-material-jquery:2.3.1-SNAPSHOT" level="project" />
3040
<orderEntry type="library" name="Maven: com.google.gwt:gwt-user:2.8.2" level="project" />
3141
<orderEntry type="library" name="Maven: com.google.jsinterop:jsinterop-annotations:1.0.2" level="project" />
3242
<orderEntry type="library" name="Maven: com.google.jsinterop:jsinterop-annotations:sources:1.0.2" level="project" />
@@ -82,7 +92,7 @@
8292
<orderEntry type="library" name="Maven: org.eclipse.jetty.toolchain:jetty-schemas:3.1.M0" level="project" />
8393
<orderEntry type="library" name="Maven: org.mortbay.jasper:apache-jsp:8.0.9.M3" level="project" />
8494
<orderEntry type="library" name="Maven: org.mortbay.jasper:apache-el:8.0.9.M3" level="project" />
85-
<orderEntry type="library" name="Maven: com.github.gwtmaterialdesign:gwt-material-jquery:2.3" level="project" />
95+
<orderEntry type="module" module-name="gwt-material-jquery" />
8696
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" />
8797
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
8898
</component>

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>com.github.gwtmaterialdesign</groupId>
99
<artifactId>gwt-material-am4charts</artifactId>
10-
<version>2.3</version>
10+
<version>2.4.0-rc1</version>
1111
<packaging>gwt-lib</packaging>
1212

1313
<name>Gwt Material AmCharts V4</name>
@@ -28,8 +28,8 @@
2828
<maven.compiler.source>1.8</maven.compiler.source>
2929
<maven.compiler.target>1.8</maven.compiler.target>
3030
<project.encoding>UTF-8</project.encoding>
31-
<tbroyer.version>1.0-rc-9</tbroyer.version>
32-
<gwt.version>2.8.2</gwt.version>
31+
<tbroyer.version>1.0.0</tbroyer.version>
32+
<gwt.version>2.9.0</gwt.version>
3333
<gmd.jquery.version>${project.version}</gmd.jquery.version>
3434
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
3535
</properties>
@@ -38,7 +38,7 @@
3838
<connection>scm:git:[email protected]:GwtMaterialDesign/gwt-material.git</connection>
3939
<developerConnection>scm:git:[email protected]:GwtMaterialDesign/gwt-material.git</developerConnection>
4040
<url>http://github.com/GwtMaterialDesign/gwt-material</url>
41-
<tag>v2.3</tag>
41+
<tag>v2.4.0-rc1</tag>
4242
</scm>
4343

4444
<licenses>

src/main/java/gwt/material/design/amcharts/client/XYChart.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public static final XYChart create(Widget container) {
5151
@JsProperty
5252
public boolean maskBullets;
5353

54+
@JsProperty
55+
public Container tooltipContainer;
56+
5457
/**
5558
* @see MouseWheelBehavior
5659
*/

src/main/java/gwt/material/design/amcharts/client/axis/Axis.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
import gwt.material.design.amcharts.client.dataitem.AxisDataItem;
2525
import gwt.material.design.amcharts.client.renderer.AxisRenderer;
2626
import gwt.material.design.amcharts.client.series.XYSeries;
27-
import gwt.material.design.amcore.client.base.Sprite;
27+
import gwt.material.design.amcore.client.base.Component;
2828
import gwt.material.design.amcore.client.events.SpriteEventDispatcher;
29-
import gwt.material.design.amcore.client.list.*;
29+
import gwt.material.design.amcore.client.list.DictionaryTemplate;
30+
import gwt.material.design.amcore.client.list.List;
31+
import gwt.material.design.amcore.client.list.ListTemplate;
32+
import gwt.material.design.amcore.client.list.SortedListTemplate;
3033
import gwt.material.design.amcore.client.properties.OrientationPoint;
3134
import gwt.material.design.amcore.client.properties.Point;
3235
import gwt.material.design.amcore.client.state.SpriteState;
@@ -36,7 +39,7 @@
3639
import jsinterop.annotations.JsType;
3740

3841
@JsType(isNative = true, namespace = "am4charts")
39-
public class Axis extends Sprite {
42+
public class Axis extends Component {
4043

4144
@JsProperty
4245
public boolean autoDispose;

src/main/java/gwt/material/design/amcharts/client/axis/DateAxis.java

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public class DateAxis extends ValueAxis {
4040
@JsProperty
4141
public int baseDuration;
4242

43+
/**
44+
* A base interval (granularity) of data.
45+
* Used to indicate what are the base units of your data.
46+
* For example, if you have a data set that has a data point every 5 minutes, you may want to set this to { timeUnit: "minute", count: 5 }.
47+
* If not set, the Axis will try to determine the setting by its own, looking at actual data.
48+
* For best results, try to follow these values for count:
49+
* When unit is "month", use 12 / count = round number When unit is "hour", use 24 / count = round number When unit is "second" and "minute", use 60 / count = round number
50+
*/
4351
@JsProperty
4452
public TimeInterval baseInterval;
4553

@@ -58,6 +66,9 @@ public class DateAxis extends ValueAxis {
5866
@JsProperty
5967
public boolean skipEmptyPeriods;
6068

69+
@JsProperty
70+
public JsDate tooltipDate;
71+
6172
@JsProperty
6273
public String tooltipDateFormat;
6374

@@ -142,4 +153,62 @@ public final void zoomToDates(Date startDate, Date endDate) {
142153
public final void zoomToDates(Date startDate, Date endDate, boolean skipRangeEvent, boolean instantly) {
143154
zoomToDates(JsDate.create(startDate.getTime()), JsDate.create(endDate.getTime()), skipRangeEvent, instantly);
144155
}
156+
157+
/**
158+
* Type number
159+
* Indicates threshold of data items in selected range at which to start aggregating data items if groupData = true.
160+
*/
161+
@JsProperty
162+
public int groupCount;
163+
164+
/**
165+
* Type boolean
166+
* Indicates if data should be aggregated to composide data items if there are more data items in selected range than groupCount.
167+
* Grouping will occur automatically, based on current selection range, and will change dynamically when user zooms in/out the chart.
168+
* NOTE: This works only if DateAxis is base axis of an XYSeries.
169+
* The related XYSeries also needs to be set up to take advantage of, by setting its groupFields.
170+
* The group intervals to aggregate data to is defined by groupIntervals property.
171+
*/
172+
@JsProperty
173+
public boolean groupData;
174+
175+
/**
176+
* If data aggregation is enabled by setting Axis' groupData = true, the chart will try to aggregate data items into grouped data items.
177+
* If there are more data items in selected period than groupCount, it will group data items into bigger period.
178+
* For example seconds might be grouped into 10-second aggregate data items.
179+
* This setting indicates what group intervals can the chart group to.
180+
*
181+
* Default intervals:
182+
*
183+
* [
184+
* { timeUnit: "millisecond", count: 1},
185+
* { timeUnit: "millisecond", count: 10 },
186+
* { timeUnit: "millisecond", count: 100 },
187+
* { timeUnit: "second", count: 1 },
188+
* { timeUnit: "second", count: 10 },
189+
* { timeUnit: "minute", count: 1 },
190+
* { timeUnit: "minute", count: 10 },
191+
* { timeUnit: "hour", count: 1 },
192+
* { timeUnit: "day", count: 1 },
193+
* { timeUnit: "week", count: 1 },
194+
* { timeUnit: "month", count: 1 },
195+
* { timeUnit: "year", count: 1 }
196+
* ]
197+
*/
198+
@JsProperty
199+
public List<TimeInterval> groupIntervals;
200+
201+
/**
202+
*A collection of start timestamps to use as axis' max timestamp for particular data item item periods.
203+
@readonly
204+
*/
205+
@JsProperty
206+
public boolean groupMax;
207+
208+
/**
209+
*A collection of start timestamps to use as axis' min timestamp for particular data item item periods.
210+
@readonly
211+
*/
212+
@JsProperty
213+
public boolean groupMin;
145214
}

src/main/java/gwt/material/design/amcharts/client/axis/ValueAxis.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import gwt.material.design.amcharts.client.SerialChart;
2323
import gwt.material.design.amcharts.client.dataitem.ValueAxisDataItem;
24+
import gwt.material.design.amcharts.client.renderer.AxisRenderer;
2425
import gwt.material.design.amcore.client.list.List;
2526
import gwt.material.design.amcharts.client.datafield.axis.ValueAxisDataFields;
2627
import gwt.material.design.amcore.client.list.ListTemplate;

src/main/java/gwt/material/design/amcharts/client/base/TimeInterval.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020
package gwt.material.design.amcharts.client.base;
2121

22+
import jsinterop.annotations.JsOverlay;
2223
import jsinterop.annotations.JsPackage;
2324
import jsinterop.annotations.JsProperty;
2425
import jsinterop.annotations.JsType;
@@ -34,4 +35,12 @@ public class TimeInterval {
3435
*/
3536
@JsProperty
3637
public String timeUnit;
38+
39+
@JsOverlay
40+
public static final TimeInterval create(int count, String timeUnit) {
41+
TimeInterval timeInterval = new TimeInterval();
42+
timeInterval.count = count;
43+
timeInterval.timeUnit = timeUnit;
44+
return timeInterval;
45+
}
3746
}

0 commit comments

Comments
 (0)