Type Alias: MetricProps

MetricProps: ComponentProps & object

Defines the additional properties for an AnalyticsMetric component

optional comparison: ComparisonType

The time comparison type of the metric.

optional isSubmetric: boolean

Indicates whether the metric is a submetric (true) or not (false). Default is false.

optional layout: MetricLayoutAttributes

The layout attributes of the metric visualization.

optional range: MetricTimeRange

The time range for the metric data.

types/types.ts:50