diff --git a/src/pages/usage/components/metric-chart-card.tsx b/src/pages/usage/components/metric-chart-card.tsx index edc219d2..8790ae5f 100644 --- a/src/pages/usage/components/metric-chart-card.tsx +++ b/src/pages/usage/components/metric-chart-card.tsx @@ -133,12 +133,14 @@ const MetricChartCard: React.FC = ({ xAxisData={xAxisData} height={280} labelFormatter={labelFormatter} - // Auto-show a legend once the trend is split into multiple series. + // Auto-show a legend once the trend is split into multiple series, and + // reserve room below the x-axis so it doesn't overlap the date labels. legendData={ seriesData.length > 1 ? seriesData.map((s) => ({ name: s.name })) : undefined } + grid={seriesData.length > 1 ? { bottom: 28 } : undefined} /> );