numbers method
Fills one numeric column from an array, one value per row.
Column-wise filling, for a caller that holds arrays rather than records — a
spreadsheet column, a series of measurements. Row i of every column is the
same row, so two calls with arrays of the same length make a table.
field The column name.
values One value per row, in row order.
Returns This dataset, so calls chain.
See also strings.
Implementation
VlDataset numbers(String field, List<double> values) {
for ( int i = 0; i < values.length; i++) {
var v = values[i];
VlJson r = this.rowAt(i);
r.setMember(field, VlJson.numberValue(v));
}
return this;
}