X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=9d4a4857690fa5ebdab425b4478d50bf3acdd214;hb=34ad56b341279a066dc8bad129501d8d254699c1;hp=c7f4417626c559d1569435170fa637b9fe9fddc8;hpb=eced46cfdfe378a0152ecae57db0cf2815850f20;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index c7f4417..9d4a485 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." @@ -421,7 +421,7 @@ Dygraph.OPTIONS_REFERENCE = // "labels": ["Axis display"], "type": "Array of two numbers", "example": "[10, 110]", - "description": "Explicitly set the vertical range of the graph to [low, high]. This may be set on a per-axis basis to define each y-axis separately." + "description": "Explicitly set the vertical range of the graph to [low, high]. This may be set on a per-axis basis to define each y-axis separately. If either limit is unspecified, it will be calculated automatically (e.g. [null, 30] to automatically calculate just the lower bound)" }, "labelsDivWidth": { "default": "250", @@ -469,7 +469,7 @@ Dygraph.OPTIONS_REFERENCE = // "default": "false", "labels": ["Data Line display"], "type": "boolean", - "description": "When set, display the graph as a step plot instead of a line plot." + "description": "When set, display the graph as a step plot instead of a line plot. This option may either be set for the whole graph or for single series." }, "labelsKMB": { "default": "false", @@ -728,7 +728,7 @@ Dygraph.OPTIONS_REFERENCE = // "default": "false", "labels": ["Interactive Elements"], "type": "boolean", - "description": "Show the range selector widget. This option can only be specified at Dygraph creation time." + "description": "Show or hide the range selector widget." }, "rangeSelectorHeight": { "default": "40",