vega-lite-api

vl.q3(field, as)

Specify a q3 aggregate operation.

q3 Method Overview

q3 API Reference

# q3.as(value)

The output field names to use for each aggregated field.

# q3.field(value)

The data field for which to compute aggregate function. This is required for all aggregation operations except "count".

# q3.op(value)

The aggregation operation to apply to the fields (e.g., "sum", "average", or "count"). See the full list of supported aggregation operations for more information.

# q3.order(order)

Indicates the sort order. One of "ascending" or "descending". Only applicable if the operation is being used as a sort parameter.