DataMetric_Base

components/data/metric/_/Base.vue

Full-featured machine layout composing label, value, trend, and spark chart. Optionally clickable.

Requests
24.3
k
+128

Latency
142
ms
+12ms

Errors
3
-2

Scenarios
No spark
500
+10
Empty spark
500
+10

Overflow spark
500
+10

Default slot — hairline spans slot content
Agents
34
20 active · 14 other
components/data/metric/_/Base.vue

Usage

<DataMetric_Base label = "—" :val = "val" unit = "—" :spark = "spark" :trend = "trend" :healthMode = "healthModes.NEVER_HOT" :size = "size" weight = "—" :showFullNumber = "false" spaceAfterLabel = "—" :sparkMaxWidth = "sparkMaxWidth" to = "_none_" > Content here </DataMetric_Base>

Props

PropTypeDefaultDescription
labelString''Component label
valNumberundefinedNumeric value
unitString''Unit label
sparkArrayundefinedSpark chart data
trendNumberundefinedChange value
healthModeFunctionhealthModes.NEVER_HOTHealth evaluation function
sizeNumberundefinedValue font size
weightString''Value font weight
showFullNumberBooleanfalseShow unabbreviated number
spaceAfterLabelString''Spacing after label
sparkMaxWidthNumberundefinedMax width for spark chart
toString'_none_'Optional navigation route

Slots

SlotDescription
defaultAdditional content below the value (e.g. a segment bar + legend). Renders inside the inline-block root, so the label hairline spans the slot width — added c59.

Related

Qpoint Brand Style Guide