A threshold/annotation line drawn over Bar/Line/Area/Combo charts.
<insightdock/cartesian_chart.h>
struct ReferenceLine;
| Name | Description |
|---|---|
color | |
dash | Alternating on/off stroke lengths in pixels; defaults to dashed to stand out from data. |
label | Optional text drawn at the line's plot-edge end. |
orientation | |
use_secondary_axis | Horizontal only: plot against the secondary (right) y-axis instead of the primary. |
value | For ReferenceOrientation::Horizontal, a y-axis data value. For ReferenceOrientation::Vertical, a fractional category index (the x_scale domain is [0, categories.size()]) — not a category label lookup. |
width |
Not available on PieChart or ScatterChart, which have no CartesianChart::draw_overlay hook to attach to.