import React from "react"; export default function MacroCorrelations({ data }) { if (!data || !data.correlations) return null; return (

Macro Indicator Correlations

Portfolio sensitivity to major economic indicators.

{data.correlations.map((c, i) => { const absCorr = Math.abs(c.correlation); const color = absCorr > 0.5 ? "var(--warning)" : absCorr > 0.3 ? "var(--info)" : "var(--text-muted)"; return ( ); })}
Indicator Correlation Rolling (60d) Interpretation
{c.indicator} {c.correlation > 0 ? "+" : ""}{c.correlation.toFixed(3)}
0 ? "var(--success)" : "var(--error)", }} />
{c.rolling_current != null ? c.rolling_current.toFixed(3) : "—"} {c.interpretation}
); }