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

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_" />

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

Related