From ac928d203b05de4a8d43ad89667347865e98bb7c Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 28 Oct 2015 16:22:38 -0400 Subject: [PATCH] usage --- src/dygraph-options-reference.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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", -- 2.7.4