add_chart_threshold_line
Add a horizontal threshold line with label to Plotly charts for highlighting benchmarks, targets, or critical thresholds.
Instructions
Add a horizontal threshold/reference line with label.
Ideal for: EU average benchmark, target/goal line, critical threshold.
Returns: Enhanced figure dict
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Line color (default: gold) | #ffab00 |
| label | No | Label text | |
| figure | Yes | Plotly figure dict from create_chart() | |
| direction | No | 'above' or 'below' | above |
| threshold | Yes | Y-value of the line |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||