X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options-reference.js;h=b29bb4723d78648f834a9e84b65603984b937036;hb=c1f22b5a5d4ffbf25a75fc567232e65381c1938b;hp=2dc8b155b5cb397705c8691e8205f91c58206580;hpb=48e614acf3084b9836803f8b014bf0e65f1ca119;p=dygraphs.git diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index 2dc8b15..b29bb47 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + // NOTE: in addition to parsing as JS, this snippet is expected to be valid // JSON. This assumption cannot be checked in JS, but it will be checked when // documentation is generated by the generate-documentation.py script. For the @@ -575,6 +581,36 @@ Dygraph.OPTIONS_REFERENCE = // "labels": [ "Debugging" ], "type": "string", "description": "Set this option to log timing information. The value of the option will be logged along with the timimg, so that you can distinguish multiple dygraphs on the same page." + }, + "showRangeSelector": { + "default": "false", + "labels": ["Interactive Elements"], + "type": "boolean", + "description": "Show the range selector widget. This option can only be specified at Dygraph creation time." + }, + "rangeSelectorHeight": { + "default": "40", + "labels": ["Interactive Elements"], + "type": "integer", + "description": "Height, in pixels, of the range selector widget. This option can only be specified at Dygraph creation time." + }, + "rangeSelectorPlotStrokeColor": { + "default": "#808FAB", + "labels": ["Interactive Elements"], + "type": "string", + "description": "The range selector mini plot stroke color. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\". You can also specify null or \"\" to turn off stroke." + }, + "rangeSelectorPlotFillColor": { + "default": "#A7B1C4", + "labels": ["Interactive Elements"], + "type": "string", + "description": "The range selector mini plot fill color. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\". You can also specify null or \"\" to turn off fill." + }, + "animatedZooms": { + "default": "false", + "labels": ["Interactive Elements"], + "type": "boolean", + "description": "Set this option to animate the transition between zoom windows. Applies to programmatic and interactive zooms. Note that if you also set a drawCallback, it will be called several times on each zoom. If you set a zoomCallback, it will only be called after the animation is complete." } } ; // @@ -587,7 +623,7 @@ Dygraph.OPTIONS_REFERENCE = // (function() { var warn = function(msg) { if (console) console.warn(msg); }; var flds = ['type', 'default', 'description']; - var valid_cats = [ + var valid_cats = [ 'Annotations', 'Axis display', 'Chart labels',