diff --git a/FUNCTIONS.md b/FUNCTIONS.md index ea99d18961a484..b1abe8da6bfa79 100644 --- a/FUNCTIONS.md +++ b/FUNCTIONS.md @@ -127,7 +127,7 @@ Fills null values using a defined fit function Argument | Accepts | Description --- | --- | --- -mode | *string* | *no help available* +mode | *string* | The algorithm to use for fitting the series to the target. One of: average, nearest, none, scale #### .hide() Hide the series by default diff --git a/fit_functions/average.js b/fit_functions/average.js index 48ff3333989f77..5a320f77fbe769 100644 --- a/fit_functions/average.js +++ b/fit_functions/average.js @@ -6,8 +6,6 @@ var _ = require('lodash'); module.exports = function (dataTuples, targetTuples) { - console.log(dataTuples); - // Phase 1: Downsample // We nessecarily won't well match the dataSource here as we don't know how much data // they had when creating their own average @@ -48,10 +46,7 @@ module.exports = function (dataTuples, targetTuples) { if (isNaN(resultValues[i])) { if (i === 0) { // If our first number is NaN, intialize from dataTuples; - console.log('here'); - console.log(dataTuples); previousRealNumber = dataTuples[0][1]; - console.log('there'); } naNCount++; } else { diff --git a/series_functions/fit.js b/series_functions/fit.js index 65c3d89b4fcb74..c5722791f5a8dc 100644 --- a/series_functions/fit.js +++ b/series_functions/fit.js @@ -13,7 +13,8 @@ module.exports = new Chainable('fit', { }, { name: 'mode', - types: ['string'] + types: ['string'], + help: 'The algorithm to use for fitting the series to the target. One of: ' + _.keys(fitFunctions).join(', ') } ], help: 'Fills null values using a defined fit function',