vega-lite-api

vl.mean(field, as)

Specify a mean aggregate operation.

mean Method Overview

mean API Reference

# mean.as(value)

The output field names to use for each aggregated field.

# mean.field(value)

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

# mean.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.

# mean.order(order)

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