(
ir: &plotlars_core::ir::trace::BoxPlotIR,
has_legend: &mut bool,
legend_entries: &mut Vec<LegendEntry>,
color: RGBColor,
opacity: f64,
)
| 524 | } |
| 525 | |
| 526 | fn add_legend_entry( |
| 527 | ir: &plotlars_core::ir::trace::BoxPlotIR, |
| 528 | has_legend: &mut bool, |
| 529 | legend_entries: &mut Vec<LegendEntry>, |
| 530 | color: RGBColor, |
| 531 | opacity: f64, |
| 532 | ) { |
| 533 | if let Some(ref name) = ir.name { |
| 534 | *has_legend = true; |
| 535 | legend_entries.push(LegendEntry { |
| 536 | name: name.clone(), |
| 537 | color, |
| 538 | opacity, |
| 539 | kind: SwatchKind::Rect, |
| 540 | }); |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | /// Deterministic pseudo-random jitter from value index. Determinism matters so |
| 545 | /// SVG output is byte-stable across runs (relied on by integration tests). |
no outgoing calls
no test coverage detected