X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=datahandler%2Fdatahandler.js;h=b3eae91ea612a10367295a2d408d5699405ae501;hb=bfb3e0a44ba7eb76704389cd1515db9995944d41;hp=3d61a821cc43150ce53581b4d39bac8036e8791b;hpb=20eac9a94d79f723c5f6539ed86209911a66193a;p=dygraphs.git diff --git a/datahandler/datahandler.js b/datahandler/datahandler.js index 3d61a82..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) {