Unit
Unit =
object
Defined in: packages/model-dataset/src/quantity/unit.ts:9
A quantity’s unit and scale, shared by every renderer that needs to label an axis or a column without knowing what produced the numbers.
Carries no notion of “better”: nanoseconds are lower-is-better for latency and higher-is-better for battery life, so direction belongs to the measured quantity (FieldDescriptor), not to the dimension it is measured in.
Properties
Section titled “Properties”scale:
number
Defined in: packages/model-dataset/src/quantity/unit.ts:13
Values are expressed in symbol × 10^scale. -3 is milli, -9 is nano.
symbol
Section titled “symbol”symbol:
string
Defined in: packages/model-dataset/src/quantity/unit.ts:11
Base unit symbol: "s", "B", "op/s", "°C", "1" for dimensionless.