vega-lite-api

vl.flatten(…flatten)

Map array fields to new records, one per array entry.

flatten Method Overview

flatten API Reference

# flatten.as(…value)

The output field names for extracted array values.

Default value: The field name of the corresponding array field

# flatten.flatten(…value)

An array of one or more data fields containing arrays to flatten. If multiple fields are specified, their array values should have a parallel structure, ideally with the same length. If the lengths of parallel arrays do not match, the longest array will be used with null values added for missing entries.