X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=datahandler%2Fdatahandler.js;h=b3eae91ea612a10367295a2d408d5699405ae501;hb=c715be428d83d80c0a26fd60dc5bc36fb4c908d9;hp=02617940fa835996e5db1967447fe7ce7577504d;hpb=66c953562e2255253c3f11eaecad9eff41b11024;p=dygraphs.git diff --git a/datahandler/datahandler.js b/datahandler/datahandler.js index 0261794..b3eae91 100644 --- a/datahandler/datahandler.js +++ b/datahandler/datahandler.js @@ -103,7 +103,8 @@ handler.prototype.extractSeries = function(rawData, seriesIndex, options) { }; /** - * Converts a series to a Point array. + * Converts a series to a Point array. The resulting point array must be + * returned in increasing order of idx property. * * @param {!Array.<[!number,?number,?]>} series The series in the unified * data format where series[i] = [x,y,{extras}]. @@ -161,7 +162,6 @@ handler.prototype.onPointsCreated_ = function(series, points) { * data format where series[i] = [x,y,{extras}]. * @param {!number} rollPeriod The number of points over which to average the data * @param {!DygraphOptions} options The dygraph options. - * TODO(danvk): be more specific than "Array" here. * @return {!Array.<[!number,?number,?]>} the rolled series. */ handler.prototype.rollingAverage = function(series, rollPeriod, options) { @@ -255,6 +255,7 @@ handler.prototype.getIndexesInWindow_ = function(series, dateWindow) { * all values were type number, with few edge cases, none of which were strings. * @param {?number} val * @return {number} + * @protected */ handler.parseFloat = function(val) { // parseFloat(null) is NaN