X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=0e6b98e0927214bbed00026fcb4c12b010aca1c2;hb=9d31b3fe6bb776384da58c37dc9b2ba1304f1fd0;hp=9217f3d95f41b73bd577adff83e1c5ada4d28a32;hpb=5469113bc1d7bb38c9214e709c87598b7f6ef256;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 9217f3d..0e6b98e 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -41,13 +41,22 @@ Dygraph.OPTIONS_REFERENCE = // "default": "false", "labels": ["Data Line display"], "type": "boolean", - "description": "Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart. The small dot can be replaced with a custom rendering by supplying a drawPointCallback." + "description": "Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart. The small dot can be replaced with a custom rendering by supplying a drawPointCallback." }, "drawPointCallback": { "default": "null", "labels": ["Data Line display"], "type": "function(g, seriesName, canvasContext, cx, cy, color, pointSize)", - "description": "Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color." + "parameters": [ + [ "g" , "the reference graph" ], + [ "seriesName" , "the name of the series" ], + [ "canvasContext" , "the canvas to draw on" ], + [ "cx" , "center x coordinate" ], + [ "cy" , "center y coordinate" ], + [ "color" , "series color" ], + [ "pointSize" , "the radius of the image." ] + ], + "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" }, "height": { "default": "320", @@ -107,7 +116,16 @@ Dygraph.OPTIONS_REFERENCE = // "default": "null", "labels": ["Data Line display"], "type": "function(g, seriesName, canvasContext, cx, cy, color, pointSize)", - "description": "Draw a custom item when a point is highlighted. Default is a small dot matching the series color." + "parameters": [ + [ "g" , "the reference graph" ], + [ "seriesName" , "the name of the series" ], + [ "canvasContext" , "the canvas to draw on" ], + [ "cx" , "center x coordinate" ], + [ "cy" , "center y coordinate" ], + [ "color" , "series color" ], + [ "pointSize" , "the radius of the image." ] + ], + "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" }, "highlightSeriesOpts": { "default": "null", @@ -115,17 +133,11 @@ Dygraph.OPTIONS_REFERENCE = // "type": "Object", "description": "When set, the options from this object are applied to the timeseries closest to the mouse pointer for interactive highlighting. See also 'highlightCallback'. Example: highlightSeriesOpts: { strokeWidth: 3 }." }, - "highlightSeriesBackgroundFade": { - "default": "0", - "labels": ["Interactive Elements"], - "type": "number", - "description": "When nonzero, dim the background while highlighting series. 0=fully visible, 1=hidden" - }, - "highlightSeriesAnimate": { - "default": "false", + "highlightSeriesBackgroundAlpha": { + "default": "0.5", "labels": ["Interactive Elements"], - "type": "boolean", - "description": "Animate the background dimming for nonzero highlightSeriesBackgroundFade." + "type": "float", + "description": "Fade the background while highlighting series. 1=fully visible background (disable fading), 0=hiddden background (show highlighted series only)." }, "includeZero": { "default": "false",