From: Dan Vanderkam Date: Wed, 28 Oct 2015 20:22:38 +0000 (-0400) Subject: usage X-Git-Tag: v2.0.0~33^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ac928d203b05de4a8d43ad89667347865e98bb7c;hp=85dfd5368b1993cba54c6d2214cceeb995f6b176;p=dygraphs.git usage --- 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",