Skip to content

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.

ParameterTypeDescription
templateClassifyRecordThe 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.
dataunknown-

ClassifyRecord

a new record; the template is not modified.