UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

26 lines (22 loc) 692 B
var reduce = require('../lib/reduce.js'); var Chainable = require('../lib/classes/chainable'); module.exports = new Chainable('max', { args: [ { name: 'inputSeries', types: ['seriesList'] }, { name: 'value', types: ['seriesList', 'number'], help: 'Sets the point to whichever is higher, the existing value, or the one passed.' + ' If passing a seriesList it must contain exactly 1 series.' } ], help: 'Maximum values of one or more series in a seriesList to each position, in each series, of the input seriesList', fn: function maxFn(args) { return reduce(args, function (a, b) { return Math.max(a, b); }); } });