Fix-up: rustfmt the area-chart label condition after merging the chart PRs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-10-12 23:33:10 -04:00
parent 2df8dd6392
commit 811a8a139a
1 changed files with 4 additions and 1 deletions

View File

@ -1001,7 +1001,10 @@ fn cartesian(ctx: &mut Ctx, chart: &Chart, data: &ChartData, area: Bx, horizonta
top.push([c, vpos(t, &sc)]);
base.push([c, vpos(b, &sc)]);
// Source values (not stack totals), just above the top edge like the line labels.
if labels_on && sp.is_some() && let Some(v) = s.values.get(j).copied().flatten() {
if labels_on
&& sp.is_some()
&& let Some(v) = s.values.get(j).copied().flatten()
{
area_labels.push((c, vpos(t, &sc) - 5.0, fmt.format(v, None)));
}
}