From: Dan Vanderkam Date: Fri, 8 Feb 2013 19:59:29 +0000 (-0500) Subject: Fix documentation for underlayCallback (Issue 379) X-Git-Tag: v1.0.0~101 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1987a3dfbdf314acc15f826263e64553cdffdb03;p=dygraphs.git Fix documentation for underlayCallback (Issue 379) --- diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 0f601d1..a3392d9 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -269,10 +269,10 @@ Dygraph.OPTIONS_REFERENCE = // "underlayCallback": { "default": "null", "labels": ["Callbacks"], - "type": "function(canvas, area, dygraph)", + "type": "function(context, area, dygraph)", "parameters": [ - [ "canvas" , "the canvas to draw on" ], - [ "area" , "" ], + [ "context" , "the canvas drawing context on which to draw" ], + [ "area" , "An object with {x,y,w,h} properties describing the drawing area." ], [ "dygraph" , "the reference graph" ] ], "description": "When set, this callback gets called before the chart is drawn. It details on how to use this."