From e6e12f189a4d828530bab7607ce42ea56283d810 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 14 Jun 2011 11:22:28 -0400 Subject: [PATCH] remove NOTE, update comment --- dygraph-options-reference.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 8709ffa..5bc7f63 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -352,12 +352,11 @@ Dygraph.OPTIONS_REFERENCE = // "description": "Function to call to format values along the x axis." }, "clickCallback": { - "snippet": "function(e, date){
  alert(date);
}", + "snippet": "function(e, date_millis){
  alert(new Date(date_millis));
}", "default": "null", "labels": ["Callbacks"], - "type": "function(e, date, points)", - // NOTE(konigsberg): Is this description correct? - "description": "A function to call when the canvas is clicked. The function should take three arguments, the event object for the click, the date that was clicked, and the closest points along that date. The points have these properties:\n * xval/yval: The data coordinates of the point (with dates/times as millis since epoch) \n * canvasx/canvasy: The canvas coordinates at which the point is drawn. \n name: The name of the data series to which the point belongs" + "type": "function(e, x, points)", + "description": "A function to call when the canvas is clicked. The function should take three arguments, the event object for the click, the x-value that was clicked (for dates this is millis since epoch), and the closest points along that date. The points have these properties:\n * xval/yval: The data coordinates of the point (with dates/times as millis since epoch) \n * canvasx/canvasy: The canvas coordinates at which the point is drawn. \n name: The name of the data series to which the point belongs" }, "yAxisLabelFormatter": { "default": "yValueFormatter", -- 2.7.4