refactor: simplify solar power chart and remove energy bar
This commit is contained in:
+1
-19
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user