Skip to content
pyautark (soon)

@urban-toolkit/autk-plot


@urban-toolkit/autk-plot / run

Function: run()

run(rows, config, columns): ExecutedPlotTransform

Defined in: transforms/index.ts:61

Runs a plot transform config through the preset pipeline.

Parameters

rows

object & object[]

Input rows to transform.

config

PlotTransformConfig

Transform configuration selecting the preset runner.

columns

string[]

Ordered source columns passed to the chosen preset.

Returns

ExecutedPlotTransform

Executed transform payload tagged with its preset discriminator.

Throws

Never throws. Falls through to the last preset when unrecognized.

Example

ts
const result = run(data, { preset: 'binning-1d', options: { bins: 10 } }, ['area']);

Released under the MIT License.