vega-lite-api

vl.fold(…fold)

Collapse one or more data fields into two key, value fields.

fold Method Overview

fold API Reference

# fold.as(…value)

The output field names for the key and value properties produced by the fold transform. Default value: ["key", "value"]

# fold.fold(…value)

An array of data fields indicating the properties to fold.