classifyWithData
classifyWithData(
template,data):ClassifyRecord
Defined in: packages/core/src/classify/compile.ts:245
Read a dataset into a record: compute a method:’s breaks, and note the
value range and no-data count.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
template | ClassifyRecord | The record as resolveClassify made it (pending, for a method:). Always derive from the template, not from a previous result: a refresh with fewer ties must be able to draw more classes again. |
data | unknown | - |
Returns
Section titled “Returns”a new record; the template is not modified.