diff --git a/src/app/dashboard/management/management-charts.tsx b/src/app/dashboard/management/management-charts.tsx index a40bb5b..4927126 100644 --- a/src/app/dashboard/management/management-charts.tsx +++ b/src/app/dashboard/management/management-charts.tsx @@ -104,7 +104,7 @@ export function IncomeCostChart({ months, title = "Income & cost", incomeLabel = description={description ?? "Teal shows income left after costs, excluding retention payouts. Values below zero are red."} />; } -export function ResultChart({ months, title = "Cumulative planned cash result from zero; not a bank balance" }: { months: { label: string; cumulativeResult: number | null }[]; title?: string }) { +export function ResultChart({ months, title = "Cumulative planned cash result from zero; not a bank balance", color = chartColors.result }: { months: { label: string; cumulativeResult: number | null }[]; title?: string; color?: string }) { const gradientId = useId().replace(/:/g, ""); const max = Math.max(0, ...months.map((m) => m.cumulativeResult ?? 0)); const min = Math.min(0, ...months.map((m) => m.cumulativeResult ?? 0)); @@ -112,8 +112,8 @@ export function ResultChart({ months, title = "Cumulative planned cash result fr return
Purple: forecast. Grey dashed line: planned cost at 95% of the purple forecast income only, excluding red amounts. Green: invoiced actuals. Red: awarded jobs not yet started, stacked on the invoiced bar up to the current month and on the forecast bar after it.
+Purple: forecast. Green: invoiced actuals. Red: awarded jobs not yet started, stacked on the invoiced bar up to the current month and on the forecast bar after it.