From: Dan Vanderkam Date: Mon, 22 Jul 2013 23:36:28 +0000 (-0400) Subject: add gviz-api externs; 99 warnings X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=1db7ebec56495dbbe850c9f8853c50253f513390;p=dygraphs.git add gviz-api externs; 99 warnings --- diff --git a/dygraph-externs.js b/dygraph-externs.js index 8282774..48a90b0 100644 --- a/dygraph-externs.js +++ b/dygraph-externs.js @@ -46,11 +46,6 @@ var ValueFormatter; var DygraphDataArray; /** - * @constructor - */ -function GVizDataTable() {} - -/** * @typedef {{ * xval: (number|undefined), * x: string, diff --git a/dygraph.js b/dygraph.js index f614a5b..5ccda4c 100644 --- a/dygraph.js +++ b/dygraph.js @@ -54,12 +54,13 @@ * @param {!HTMLDivElement|string} div A div or the id of a div into which to * construct the chart. * @param {DygraphDataArray| - * GVizDataTable| + * google.visualization.DataTable| * string| - * function():(DygraphDataArray|GVizDataTable|string)} file A file - * containing CSV data or a function that returns this data. The most basic - * expected format for each line is "YYYY/MM/DD,val1,val2,...". For more - * information, see http://dygraphs.com/data.html. + * function():(DygraphDataArray|google.visualization.DataTable|string)} + * file A file containing CSV data or a function that returns this data. + * The most basic expected format for each line is + * "YYYY/MM/DD,val1,val2,...". For more information, see + * http://dygraphs.com/data.html. * @param {Object=} opt_attrs Various other attributes, e.g. errorBars * determines whether the input data contains error ranges. For a complete * list of options, see http://dygraphs.com/options.html. @@ -3331,7 +3332,7 @@ Dygraph.prototype.parseArray_ = function(data) { * number. All subsequent columns must be numbers. If there is a clear mismatch * between this.xValueParser_ and the type of the first column, it will be * fixed. Fills out rawData_. - * @param {[Object]} data See above. + * @param {Object} data See above. * @private */ Dygraph.prototype.parseDataTable_ = function(data) {