1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 1 1 2 6 | 'use strict'; require('../globals'); var filter = module.exports = {}; // remove less than 0 values if we use log function filter.filterLessThanZero = function(dataTable, encoding) { encoding.forEach(function(field, encType) { Iif (encoding.scale(encType).type === 'log') { dataTable.transform.push({ type: 'filter', test: 'd.' + encoding.fieldRef(encType) + '>0' }); } }); }; |