Chart

Rule

Web not supportediOS supportedAndroid not supported

Draw standalone reference rules.

iOS
ios-rule chart rendered on iOS

Swift Charts RuleMark · View source

Use it for thresholds or reference lines without a main series. iOS only.

Configuration

Keys accepted inside zyplot(z => ({...})). Required keys are marked with an asterisk.

NameTypeDefaultDescription
data*ChartRuleDatumIos[]Rules with optional start and end positions.
orientation"horizontal" | "vertical"Direction of the rules.
heightnumber240 web / 320 nativeChart height in pixels or native points.
isLoadingbooleanfalseShows the built-in placeholder while data loads.
themeChartThemeColors and typography for this chart.