From e829f52c451a9bc53c5db0818cf085adb7662ad2 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 9 May 2011 12:37:37 -0400 Subject: [PATCH] I can't believe the 'file' option wasn't documented! --- dygraph.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index af2e821..7dad6b2 100644 --- a/dygraph.js +++ b/dygraph.js @@ -4496,7 +4496,7 @@ Dygraph.OPTIONS_REFERENCE = // }, "fillAlpha": { "default": "0.15", - "labels": ["Error bars"], + "labels": ["Error bars", "Data Series Colors"], "type": "float (0.0 - 1.0)", "description" : "Error bars (or custom bars) for each series are drawn in the same color as the series, but with partial transparency. This sets the transparency. A value of 0.0 means that the error bars will not be drawn, whereas a value of 1.0 means that the error bars will be as dark as the line for the series itself. This can be used to produce chart lines whose thickness varies at each point." }, @@ -4529,6 +4529,12 @@ Dygraph.OPTIONS_REFERENCE = // "labels": ["Value display/formatting"], "type": "integer", "description": "When displaying numbers in normal (not scientific) mode, large numbers will be displayed with many trailing zeros (e.g. 100000000 instead of 1e9). This can lead to unwieldy y-axis labels. If there are more than maxNumberWidth digits to the left of the decimal in a number, dygraphs will switch to scientific notation, even when not operating in scientific mode. If you'd like to see all those digits, set this to something large, like 20 or 30." + }, + "file": { + "default": "(set when constructed)", + "labels": ["Data"], + "type": "string (URL of CSV or CSV), GViz DataTable or 2D Array", + "description": "Sets the data being displayed in the chart. This can only be set when calling updateOptions; it cannot be set from the constructor. For a full description of valid data formats, see the Data Formats page." } } ; // @@ -4547,6 +4553,7 @@ Dygraph.OPTIONS_REFERENCE = // 'Chart labels', 'CSV parsing', 'Callbacks', + 'Data', 'Data Line display', 'Data Series Colors', 'Error Bars', -- 2.7.4