Class BOBChartReferenceLine
Horizontal reference / threshold line drawn across the plot area at a fixed Y value. Common uses: SLO targets ("99.9%"), budget thresholds, year-over-year baselines, regulatory caps.
Reference lines are rendered over the chart geometry but under data-point hover targets, so they remain visible without intercepting click / hover interactions.
public sealed class BOBChartReferenceLine
- Inheritance
-
objectBOBChartReferenceLine
Constructors
BOBChartReferenceLine()
public BOBChartReferenceLine()
Properties
Color
Stroke color. Accepts any CSS color string. Falls back to
var(--palette-warning) when null - the conventional
"attention" tone for thresholds.
public string? Color { get; init; }
Property Value
- string
Label
Optional label rendered next to the line (typically right-aligned).
When null the line is unlabeled.
public string? Label { get; init; }
Property Value
- string
StrokeWidth
Stroke width in pixels. Default 1.5.
public double StrokeWidth { get; init; }
Property Value
- double
Style
Stroke style. Default Dashed.
public BOBChartReferenceLineStyle Style { get; init; }
Property Value
Value
Y-axis value at which the line is drawn. Projected through the chart's Y scale.
public double Value { get; init; }
Property Value
- double