comments
[dygraphs.git] / plugins / grid.js
index 3ccc2ae..051d13f 100644 (file)
@@ -9,6 +9,8 @@ Dygraph.Plugins.Grid = (function() {
 /*
 
 Current bits of jankiness:
+- Direct layout access
+- Direct area access
 
 */
 
@@ -30,11 +32,11 @@ grid.prototype.toString = function() {
 
 grid.prototype.activate = function(g) {
   return {
-    drawChart: this.drawChart
+    willDrawChart: this.willDrawChart
   };
 };
 
-grid.prototype.drawChart = function(e) {
+grid.prototype.willDrawChart = function(e) {
   // Draw the new X/Y grid. Lines appear crisper when pixels are rounded to
   // half-integers. This prevents them from drawing in two rows/cols.
   var g = e.dygraph;