Switch to latest visualization API.

Change-Id: If17948ad144e7d1fb4e6002fb705f09124177efc
diff --git a/dashboard/pom.xml b/dashboard/pom.xml
index 7a492bf..92f7393 100644
--- a/dashboard/pom.xml
+++ b/dashboard/pom.xml
@@ -19,6 +19,15 @@
     <gwtversion>2.6.1</gwtversion>
     <appengine.target.version>1.9.1</appengine.target.version>
   </properties>
+  
+  <!-- Add a local repo until we get an updated version of gwt-visualization into central -->
+  <repositories>
+    <repository>
+        <id>project.local</id>
+        <name>project</name>
+        <url>file:${project.basedir}/repo</url>
+    </repository>
+  </repositories>
 
   <dependencies>
 
@@ -44,10 +53,9 @@
     <dependency>
       <groupId>com.google.gwt.google-apis</groupId>
       <artifactId>gwt-visualization</artifactId>
-      <version>1.0.2</version>
+      <version>1.1.2</version>
     </dependency>
 
-
     <!-- Compile/runtime dependencies -->
     <dependency>
       <groupId>com.google.appengine</groupId>
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar
new file mode 100644
index 0000000..81e7cf1
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar
Binary files differ
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar.md5 b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar.md5
new file mode 100644
index 0000000..5188a09
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar.md5
@@ -0,0 +1 @@
+57e2b982a3c1b0a1909749b35115d5e4
\ No newline at end of file
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar.sha1 b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar.sha1
new file mode 100644
index 0000000..8351e15
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.jar.sha1
@@ -0,0 +1 @@
+b645c02f8214dd00603716af74b70ab749f17c1f
\ No newline at end of file
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom
new file mode 100644
index 0000000..5b9f2fa
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.google.gwt.google-apis</groupId>
+  <artifactId>gwt-visualization</artifactId>
+  <version>1.1.2</version>
+</project>
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom.md5 b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom.md5
new file mode 100644
index 0000000..1344f4f
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom.md5
@@ -0,0 +1 @@
+c095ac29765a8a37d987293ec680f8c7
\ No newline at end of file
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom.sha1 b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom.sha1
new file mode 100644
index 0000000..d818e27
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/1.1.2/gwt-visualization-1.1.2.pom.sha1
@@ -0,0 +1 @@
+5b680d4445732b17a96365124104b85a8711f233
\ No newline at end of file
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml
new file mode 100644
index 0000000..65a9df8
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>com.google.gwt.google-apis</groupId>
+  <artifactId>gwt-visualization</artifactId>
+  <versioning>
+    <release>1.1.2</release>
+    <versions>
+      <version>1.1.2</version>
+    </versions>
+    <lastUpdated>20140606123626</lastUpdated>
+  </versioning>
+</metadata>
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml.md5 b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml.md5
new file mode 100644
index 0000000..0ecff84
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml.md5
@@ -0,0 +1 @@
+7a732e7e8ea2b1f368075d519a6b1a72
\ No newline at end of file
diff --git a/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml.sha1 b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml.sha1
new file mode 100644
index 0000000..a34594e
--- /dev/null
+++ b/dashboard/repo/com/google/gwt/google-apis/gwt-visualization/maven-metadata.xml.sha1
@@ -0,0 +1 @@
+b4b13fd0513940f20dda8697d73e9222cb150ddf
\ No newline at end of file
diff --git a/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphComposite.java b/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphComposite.java
index 7252f51..5f45d05 100644
--- a/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphComposite.java
+++ b/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphComposite.java
@@ -36,7 +36,8 @@
 import com.google.gwt.user.client.ui.Widget;
 import com.google.gwt.visualization.client.AbstractDataTable.ColumnType;
 import com.google.gwt.visualization.client.DataTable;
-import com.google.gwt.visualization.client.visualizations.LineChart.Options;
+import com.google.gwt.visualization.client.visualizations.corechart.AxisOptions;
+import com.google.gwt.visualization.client.visualizations.corechart.Options;
 import com.google.inject.Inject;
 import com.google.inject.Provider;
 
@@ -166,7 +167,17 @@
     Options options = graphWidget.createOptions();
     options.setWidth(800);
     options.setHeight(600);
+
     options.setTitle(result.getBenchmarkName());
+
+    AxisOptions vAxisOptions = graphWidget.createAxisOptions();
+    vAxisOptions.setMinValue(0);
+    options.setVAxisOptions(vAxisOptions);
+
+    AxisOptions hAxisOptions = graphWidget.createAxisOptions();
+    hAxisOptions.setTextPosition("none");
+    options.setHAxisOptions(hAxisOptions);
+
     graphWidget.displayChart(options, data);
   }
 
diff --git a/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphWidget.java b/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphWidget.java
index bd7b4ce..0d80b8b 100644
--- a/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphWidget.java
+++ b/dashboard/src/main/java/com/google/gwt/benchmark/dashboard/client/ui/GraphWidget.java
@@ -17,8 +17,9 @@
 import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.visualization.client.DataTable;
 import com.google.gwt.visualization.client.VisualizationUtils;
-import com.google.gwt.visualization.client.visualizations.LineChart;
-import com.google.gwt.visualization.client.visualizations.LineChart.Options;
+import com.google.gwt.visualization.client.visualizations.corechart.AxisOptions;
+import com.google.gwt.visualization.client.visualizations.corechart.Options;
+import com.google.gwt.visualization.client.visualizations.corechart.LineChart;
 
 /**
  * This widget provides access to the visualization API.
@@ -39,6 +40,10 @@
     return Options.create();
   }
 
+  public AxisOptions createAxisOptions() {
+    return AxisOptions.create();
+  }
+
   public void clear() {
     chartContainer.clear();
   }
diff --git a/dashboard/src/test/java/com/google/gwt/benchmark/dashboard/client/ui/GraphCompositeTest.java b/dashboard/src/test/java/com/google/gwt/benchmark/dashboard/client/ui/GraphCompositeTest.java
index f26ae32..b1b6d60 100644
--- a/dashboard/src/test/java/com/google/gwt/benchmark/dashboard/client/ui/GraphCompositeTest.java
+++ b/dashboard/src/test/java/com/google/gwt/benchmark/dashboard/client/ui/GraphCompositeTest.java
@@ -23,13 +23,15 @@
 import com.google.gwt.user.client.ui.CheckBox;
 import com.google.gwt.visualization.client.AbstractDataTable.ColumnType;
 import com.google.gwt.visualization.client.DataTable;
-import com.google.gwt.visualization.client.visualizations.LineChart;
+import com.google.gwt.visualization.client.visualizations.corechart.AxisOptions;
+import com.google.gwt.visualization.client.visualizations.corechart.Options;
 import com.google.gwtmockito.GwtMockitoTestRunner;
 import com.google.inject.Provider;
 
 import static org.mockito.Matchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.reset;
+import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
 import static org.mockito.Mockito.verifyNoMoreInteractions;
 import static org.mockito.Mockito.when;
@@ -68,7 +70,7 @@
   @Mock private Provider<CheckBox> checkBoxProvider;
   @Mock private HistoryAccessor historyAccessor;
   @Mock DataTable data;
-  @Mock LineChart.Options options;
+  @Mock Options options;
   @Mock ValueChangeEvent<Boolean> vce;
 
   @Captor private ArgumentCaptor<AsyncCallback<BenchmarkResultsTable>> asyncCaptor;
@@ -198,7 +200,10 @@
 
     verify(composite.graphWidget).createData();
     verify(composite.graphWidget).createOptions();
+    verify(composite.graphWidget, times(2)).createAxisOptions();
     verify(composite.graphWidget).displayChart(options, data);
+    verify(options).setHAxisOptions(Mockito.<AxisOptions> anyObject());
+    verify(options).setVAxisOptions(Mockito.<AxisOptions> anyObject());
 
     verifyNoMoreInteractions(composite.graphWidget, data, options);