API REFERENCE

source

the tabular dataset the series read through encode (a Dataset, a source, or rows); it wins over values / series. Named source because dataset is the element's own data-* map.

Definition

ItemValue
JavaScript propertysource
HTML attributePass objects, arrays, and callbacks as JavaScript properties
TypeDataset | DatasetSourceInput | ReadonlyArray<DatasetRow> | null
Defaultundefined

undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.