vega-lite-api

vl.calculate(calculate)

Calculate a new data field value.

calculate Method Overview

calculate API Reference

# calculate.as(value)

The field for storing the computed formula value.

# calculate.calculate(value)

A expression string. Use the variable datum to refer to the current data object.