adjusted to GWT Highcharts 1.6.0 by using BaseChart.ZoomType instead of Chart.ZoomType

This commit is contained in:
Axel Uhl committed 2014-05-20 23:35:44 +02:00
1 parent 3d7c827f1a
commit f47db5662f
3 files changed
+6 -3

No files matched your search

@@ -8,6 +8,7 @@ import java.util.List;
import java.util.Map;
import org.moxieapps.gwt.highcharts.client.Axis;
import org.moxieapps.gwt.highcharts.client.BaseChart;
import org.moxieapps.gwt.highcharts.client.Chart;
import org.moxieapps.gwt.highcharts.client.ChartSubtitle;
import org.moxieapps.gwt.highcharts.client.ChartTitle;
@@ -132,7 +133,7 @@ public abstract class AbstractCompetitorRaceChart<SettingsType extends ChartSett
* Attention: We can't reuse the old chart when the detail changes because HighChart does not support the inverting of the Y-Axis
*/
private Chart createChart() {
Chart chart = new Chart().setZoomType(Chart.ZoomType.X)
Chart chart = new Chart().setZoomType(BaseChart.ZoomType.X)
.setPersistent(true)
.setWidth100()
.setHeight100()
@@ -9,6 +9,7 @@ import java.util.Map;
import java.util.Set;
import org.moxieapps.gwt.highcharts.client.Axis;
import org.moxieapps.gwt.highcharts.client.BaseChart;
import org.moxieapps.gwt.highcharts.client.Chart;
import org.moxieapps.gwt.highcharts.client.ChartSubtitle;
import org.moxieapps.gwt.highcharts.client.ChartTitle;
@@ -97,7 +98,7 @@ public class WindChart extends AbstractRaceChart implements Component<WindChartS
colorMap = new ColorMapImpl<WindSource>();
chart = new Chart()
.setPersistent(true)
.setZoomType(Chart.ZoomType.X)
.setZoomType(BaseChart.ZoomType.X)
.setMarginLeft(65)
.setMarginRight(65)
.setWidth100()
@@ -8,6 +8,7 @@ import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.moxieapps.gwt.highcharts.client.BaseChart;
import org.moxieapps.gwt.highcharts.client.Chart;
import org.moxieapps.gwt.highcharts.client.Color;
import org.moxieapps.gwt.highcharts.client.Point;
@@ -57,7 +58,7 @@ public class PolarSheetsChartPanel extends DockLayoutPanel {
*/
private Chart createPolarSheetChart() {
Chart polarSheetChart = new Chart().setType(Series.Type.LINE)
.setLinePlotOptions(new LinePlotOptions().setLineWidth(1)).setZoomType(Chart.ZoomType.X_AND_Y)
.setLinePlotOptions(new LinePlotOptions().setLineWidth(1)).setZoomType(BaseChart.ZoomType.X_AND_Y)
.setPolar(true).setHeight100().setWidth100();
polarSheetChart.setChartTitleText(stringMessages.polarSheetChart());
polarSheetChart.getYAxis().setMin(0);