Skip to content

Commit

Permalink
Add note under charts about the incomplete range
Browse files Browse the repository at this point in the history
Add a note underneath the trends charts specifying at what point
the data become incomplete.

Closes #336
  • Loading branch information
brianlove authored and jmelot committed May 16, 2024
1 parent d99d57a commit 62bf815
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/gui-v2/src/components/TrendsChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ const styles = {
margin-left: 0.5rem;
}
}
p {
color: var(--grey);
margin-left: 40px;
}
`,
chartContainer: css`
/* aspect-ratio: 4 / 3; */
Expand Down Expand Up @@ -68,7 +73,7 @@ const TrendsChart = ({
return (
<div
className={appliedClassName}
css={[styles.sectionMargin, styles.sectionWithHeading, styles.chartWrapper, appliedCss]}
css={[styles.chartWrapper, appliedCss]}
id={appliedId}
>
{!isSSR &&
Expand All @@ -83,6 +88,9 @@ const TrendsChart = ({
config={config}
/>
</div>
{partialStartIndex &&
<p>Data incomplete after {years[partialStartIndex]}.</p>
}
</Suspense>
}
</div>
Expand Down

0 comments on commit 62bf815

Please sign in to comment.