this.rollPeriod_ = length;
this.drawGraph_(this.rawData_);
};
+
+
+/**
+ * A wrapper around DateGraph that implements the gviz API.
+ * @param {Object} container The DOM object the visualization should live in.
+ */
+DateGraph.GVizChart = function(container) {
+ this.container = container;
+}
+
+DateGraph.GVizChart.prototype.draw = function(data, options) {
+ this.container.innerHTML = '';
+ this.date_graph = new DateGraph(this.container, data, null, options || {});
+}
data.setCell(3, 2, 0);
new google.visualization.LineChart(
- document.getElementById('gviz')). draw(data, null);
+ document.getElementById('gviz')).draw(data, null);
- new DateGraph(document.getElementById('dygraphs'), data, null, {});
+ new DateGraph.GVizChart(
+ document.getElementById('dygraphs')).draw(data, null);
}
google.setOnLoadCallback(drawVisualization);
</script>