X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=a4e262c2dbf0260ac90940ec7e4d03b0e59e7bfd;hb=2ed3480b3d067f380abf6636cb984ac9ff7cd484;hp=455499502fa3b00c53a95e14c8b1be08776b6b90;hpb=fa460473ef9397759466361ff32de56a4f8fa956;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 4554995..a4e262c 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -61,6 +61,7 @@ Dygraph.OPTIONS_REFERENCE = // [ "cy" , "center y coordinate" ], [ "color" , "series color" ], [ "pointSize" , "the radius of the image." ] + [ "idx" , "the row-index of the point in the data."] ], "description": "Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy). Also see drawHighlightPointCallback" }, @@ -130,6 +131,7 @@ Dygraph.OPTIONS_REFERENCE = // [ "cy" , "center y coordinate" ], [ "color" , "series color" ], [ "pointSize" , "the radius of the image." ] + [ "idx" , "the row-index of the point in the data."] ], "description": "Draw a custom item when a point is highlighted. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy) Also see drawPointCallback" }, @@ -269,10 +271,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." @@ -469,7 +471,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",