refactor: simplify solar power chart and remove energy bar

This commit is contained in:
Tanner
2026-08-26 16:30:18 +00:00
committed by Tanner (aider)
parent 27ebb43239
commit 8630595a40
+1 -19
View File
@@ -154,18 +154,9 @@ function SolarPower({end, duration}) {
/>
<YAxis
yAxisId='right'
domain={[0, 10]}
orientation='right'
hide={true}
width={35}
/>
<YAxis
yAxisId='left'
domain={[0, 6000]}
width={35}
tickCount={6}
tickFormatter={(tick) => tick === 0 ? 0 : (tick / 1000) + 'K'}
ticks={['0', '1k', '2k', '3k', '4k', '5k', '6k']}
/>
<CartesianGrid strokeDasharray='3 3'/>
@@ -179,15 +170,6 @@ function SolarPower({end, duration}) {
<Label value='Midnight' offset={7} position='top' fill='blue' />
</ReferenceLine>
<Bar
yAxisId='right'
type='monotone'
dataKey='lifetime_energy'
name='Energy'
fill='green'
isAnimationActive={false}
/>
<Line
yAxisId='left'
type='monotone'