X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-options-reference.js;h=4b1a23bf6dfd9e32a67c55a341945566b6050bfb;hb=ac928d203b05de4a8d43ad89667347865e98bb7c;hp=5bc6524cccfebf27505a51f16ea5c154439c38d8;hpb=85dfd5368b1993cba54c6d2214cceeb995f6b176;p=dygraphs.git diff --git a/src/dygraph-options-reference.js b/src/dygraph-options-reference.js index 5bc6524..4b1a23b 100644 --- a/src/dygraph-options-reference.js +++ b/src/dygraph-options-reference.js @@ -466,8 +466,11 @@ OPTIONS_REFERENCE = // "legendFormatter": { "default": "null", "labels": ["Legend"], - "type": "function", - "description": "Set this to supply a custom formatter for the legend. See ..." + "type": "function(data): string", + "params": [ + [ "data", "An object containing information about the selection (or lack of a selection). This includes formatted values and series information. See here for sample values." ] + ], + "description": "Set this to supply a custom formatter for the legend. See this comment and the legendFormatter demo for usage." }, "labelsShowZeroValues": { "default": "true",