Skip to content

flow

Applies one or more operators to the data pipeline. Operators are composed left-to-right.

Signature

ts
.flow(...operators)

Parameters

ParameterTypeDescription
operatorsOperator[]One or more operators to apply to the data

Returns a new ChartBuilderflow is immutable.

Example

ts
chart(data)
  .flow(
    derive(d => d.filter(row => row.year === 2020)),
    spread("category", { dir: "x" })
  )
  .mark(rect({ h: "value" }))