X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=src%2Fdygraph-options-reference.js;h=4b1a23bf6dfd9e32a67c55a341945566b6050bfb;hb=ac928d203b05de4a8d43ad89667347865e98bb7c;hp=3f9a640879eccdfde75fce0f782d6dbac223f4ed;hpb=ce31caf22475e3e1fd6d9fea192d61ff4fcd7fac;p=dygraphs.git diff --git a/src/dygraph-options-reference.js b/src/dygraph-options-reference.js index 3f9a640..4b1a23b 100644 --- a/src/dygraph-options-reference.js +++ b/src/dygraph-options-reference.js @@ -164,6 +164,12 @@ OPTIONS_REFERENCE = // "type": "float", "description": "Fade the background while highlighting series. 1=fully visible background (disable fading), 0=hiddden background (show highlighted series only)." }, + "highlightSeriesBackgroundColor": { + "default": "rgb(255, 255, 255)", + "labels": ["Interactive Elements"], + "type": "string", + "description": "Sets the background color used to fade out the series in conjunction with 'highlightSeriesBackgroundAlpha'." + }, "includeZero": { "default": "false", "labels": ["Axis display"], @@ -457,6 +463,15 @@ OPTIONS_REFERENCE = // "type": "string", "description": "When to display the legend. By default, it only appears when a user mouses over the chart. Set it to \"always\" to always display a legend of some sort. When set to \"follow\", legend follows highlighted points." }, + "legendFormatter": { + "default": "null", + "labels": ["Legend"], + "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", "labels": ["Legend"],