score:1

Accepted answer

best way i found to do this was to filter my data ahead of time in the nesting phase:

var data_array = keys.map(function(name) {
      return {
        name: name, // values > 0 will be excluded
        values: data.filter(function(d) { return +d[name] > 0 }).map(function(d) {
          return {date: d.date, poll: +d[name]};
        })
      };
    });

Related Query

More Query from same tag