Type Alias: MetricProps

MetricProps: ComponentProps & object

Defines the additional properties for an AnalyticsMetric component.

In multi org scenarios, always specify the orgUrl property to indicate which org the metric exists in. The orgUrl must be a Lightning URL (e.g., https://yourorg.lightning.force.com).

optional borderRadius: string

The border radius for the metric 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.