Skip to main content
Version: Next

SketchClassTableProps

Properties

formatPerc?

optional formatPerc: boolean;

Whether to format values as percentages, defaults to false


metricGroup

metricGroup: object;

Data class definitions

classes

classes: object[];

data classes used by group

classKey?

optional classKey: string;

Optional datasource class key used to source classIds

datasourceId?

optional datasourceId: string;

Datasource to generate metrics from

layerId?

optional layerId: string;

Optional ID of map layer associated with this metric

metricId

metricId: string;

Unique id of metric in project

objectiveId?

optional objectiveId: string;

group level objective, applies to all classes

type?

optional type: string;

unique identifier of what the metric represents, such as its type and method for calculation - e.g. areaOverlap, valueOverlap. To be defined by the user


rows

rows: Record<string, string | number>[];

Table rows, expected to have sketchName property and one property for each classId in classes