X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=0f601d1573b29e3e133e1efd11e5d537e0e1a685;hb=4707563ce91e069b58ed6c1be38c8e4ace4a2150;hp=9f9b53222dee0e8722d8b8ade97a35333d649533;hpb=73e953cd888d942f7e0610ebaa67a2cefbdaa085;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 9f9b532..0f601d1 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -421,7 +421,7 @@ Dygraph.OPTIONS_REFERENCE = // "labels": ["Axis display"], "type": "Array of two numbers", "example": "[10, 110]", - "description": "Explicitly set the vertical range of the graph to [low, high]. This may be set on a per-axis basis to define each y-axis separately." + "description": "Explicitly set the vertical range of the graph to [low, high]. This may be set on a per-axis basis to define each y-axis separately. If either limit is unspecified, it will be calculated automatically (e.g. [null, 30] to automatically calculate just the lower bound)" }, "labelsDivWidth": { "default": "250", @@ -728,7 +728,7 @@ Dygraph.OPTIONS_REFERENCE = // "default": "false", "labels": ["Interactive Elements"], "type": "boolean", - "description": "Show the range selector widget. This option can only be specified at Dygraph creation time." + "description": "Show or hide the range selector widget." }, "rangeSelectorHeight": { "default": "40", @@ -759,12 +759,18 @@ Dygraph.OPTIONS_REFERENCE = // "labels": ["Data Line display"], "type": "array or function", "description": "A function (or array of functions) which plot each data series on the chart. TODO(danvk): more details! May be set per-series." - } + }, "series": { "default": "null", "labels": ["Series"], - "type": "Object" + "type": "Object", "description": "Defines per-series options. Its keys match the y-axis label names, and the values are dictionaries themselves that contain options specific to that series. When this option is missing, it falls back on the old-style of per-series options comingled with global options." + }, + "plugins": { + "default": "[]", + "labels": ["Configuration"], + "type": "Array", + "description": "Defines per-graph plug-ins. Useful for per-graph customization" } } ; // @@ -776,7 +782,7 @@ Dygraph.OPTIONS_REFERENCE = // // Do a quick sanity check on the options reference. (function() { "use strict"; - var warn = function(msg) { if (console) console.warn(msg); }; + var warn = function(msg) { if (window.console) window.console.warn(msg); }; var flds = ['type', 'default', 'description']; var valid_cats = [ 'Annotations', @@ -793,9 +799,11 @@ Dygraph.OPTIONS_REFERENCE = // 'Legend', 'Overall display', 'Rolling Averages', + 'Series', 'Value display/formatting', 'Zooming', 'Debugging', + 'Configuration', 'Deprecated' ]; var i;