MetricBase
@elastic/charts • Exports
@elastic/charts / MetricBase
Type alias: MetricBase
MetricBase:
Object
Type declaration
background?
background?:
Color
Overrides background color from Theme.background
and Theme.metric.emptyBackground
body?
body?:
ReactNode
color
color:
Color
extra?
extra?:
ReactElement
|ComponentType
<Object
> |SecondaryMetricProps
Optional extra content to display below the subtitle.
- Can be a React element, a component type (which will receive
fontSize
andcolor
props), or a SecondaryMetricProps object. - If a SecondaryMetricProps object is provided, it will be rendered using the SecondaryMetric component.
icon?
icon?:
ComponentType
<Object
>
Type declaration
color
color:
Color
height
height:
number
width
width:
number
subtitle?
subtitle?:
string
title?
title?:
string
valueColor?
valueColor?:
Color
valueIcon?
valueIcon?:
ComponentType
<Object
>
Type declaration
color
color:
Color
height
height:
number
verticalAlign
verticalAlign:
"middle"
width
width:
number
Source
packages/charts/src/chart_types/metric/specs/index.ts:48
Generated using typedoc-plugin-markdown and TypeDoc