X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=98cf22f30639bfa8dbcd8799a146275e7e69c049;hb=1beeb31035c4028e84cde14b804c08d33bffbd02;hp=e7fe1c53e383a1e189854ec95abe06d10443f4a1;hpb=56bccd4d05fd54ffb85f87a4f608c02b50a6d1d5;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index e7fe1c5..98cf22f 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -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", @@ -765,6 +765,12 @@ Dygraph.OPTIONS_REFERENCE = // "labels": ["Series"], "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;