Skip to content

Commit 635ead5

Browse files
DTrim99claude
andcommitted
Fix historical chart y-axis to use evenly spaced ticks
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4e26272 commit 635ead5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/components/PolicyOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default function PolicyOverview() {
9191
<BarChart data={KICKER_HISTORY} margin={{ top: 10, right: 30, left: 20, bottom: 5 }}>
9292
<CartesianGrid strokeDasharray="3 3" vertical={false} />
9393
<XAxis dataKey="year" tick={{ fontSize: 12 }} />
94-
<YAxis tickFormatter={(v) => `${(v * 100).toFixed(0)}%`} tick={{ fontSize: 12 }} domain={[0, 0.5]} />
94+
<YAxis tickFormatter={(v) => `${(v * 100).toFixed(0)}%`} tick={{ fontSize: 12 }} domain={[0, 0.5]} ticks={[0, 0.1, 0.2, 0.3, 0.4, 0.5]} />
9595
<Tooltip
9696
content={({ active, payload, label }) => {
9797
if (!active || !payload?.length) return null;

0 commit comments

Comments
 (0)