fix: use numeric YAxis ticks with formatter

Co-authored-by: aider (gemini/gemini-3.1-pro-preview) <aider@aider.chat>
This commit is contained in:
Tanner
2026-08-26 16:30:21 +00:00
co-authored by aider
parent 8630595a40
commit fd26e68b78
+2 -1
View File
@@ -156,7 +156,8 @@ function SolarPower({end, duration}) {
<YAxis
domain={[0, 6000]}
width={35}
ticks={['0', '1k', '2k', '3k', '4k', '5k', '6k']}
ticks={[0, 1000, 2000, 3000, 4000, 5000, 6000]}
tickFormatter={(tick) => tick === 0 ? 0 : (tick / 1000) + 'k'}
/>
<CartesianGrid strokeDasharray='3 3'/>