Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Use Flow beta1 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Mar 2, 2018
1 parent 313b362 commit f90be0a
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</organization>

<properties>
<flow.version>1.0.0.alpha22</flow.version>
<flow.version>1.0.0.beta1</flow.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void callOnceOnClientReponse(Component component,

element.callFunction(function);
element.getNode().runWhenAttached(ui -> {
ui.beforeClientResponse(component, () -> {
ui.beforeClientResponse(component, context -> {
element.removeProperty(trackingProperty);
});
});
Expand Down
2 changes: 1 addition & 1 deletion vaadin-board-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-charts-flow</artifactId>
<version>6.0.0.alpha14</version>
<version>6.0.0.alpha16</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ private Component createColumnChart(String title, String color,
// plotOptionsColumn.setColor(new SolidColor(color));
plotOptionsColumn.setShowInLegend(true);
plotOptionsColumn.setGroupPadding(0);
plotOptionsColumn.setBorderWidth(1);
plotOptionsColumn.getDataLabels().setEnabled(true);
plotOptionsColumn.setAnimation(false);
configuration.setPlotOptions(plotOptionsColumn);
Expand All @@ -104,8 +103,6 @@ private Component createColumnChart(String title, String color,

configuration.getLegend().setEnabled(false);

configuration.getxAxis().setLineWidth(0);

YAxis yAxis = configuration.getyAxis();
yAxis.getLabels().setEnabled(false);
yAxis.setGridZIndex(4);
Expand Down Expand Up @@ -265,7 +262,6 @@ private Component createFunnelChart() {
plotOptionsFunnel.setNeckWidth("5%");
plotOptionsFunnel.setNeckHeight("0%");
plotOptionsFunnel.setWidth("40%");
plotOptionsFunnel.setBorderWidth(4);
plotOptionsFunnel.getDataLabels().setFormat("{point.name}: {point.x}");
plotOptionsFunnel.setAnimationLimit(0);
configuration.setPlotOptions(plotOptionsFunnel);
Expand Down Expand Up @@ -322,17 +318,11 @@ private Component createPieChart() {
configuration.getChart().setType(ChartType.PIE);

PlotOptionsPie plotOptionsPie = new PlotOptionsPie();
plotOptionsPie.setColors(new SolidColor(BLUE), new SolidColor(GREEN),
new SolidColor(YELLOW), new SolidColor(CYAN),
new SolidColor(MAGENTA), new SolidColor(PURPLE));
plotOptionsPie.getDataLabels().setFormat("{point.name}: {point.y}");
plotOptionsPie.setAnimation(false);
configuration.setPlotOptions(plotOptionsPie);

configuration.setTitle("Working Today");
// Style titleStyle = configuration.getTitle().getStyle();
// titleStyle.setFontSize("14");
// titleStyle.setColor(new SolidColor(GRAY));

DataSeries dataSeries = new DataSeries();
dataSeries.add(new DataSeriesItem("Sales", 3));
Expand Down

0 comments on commit f90be0a

Please sign in to comment.