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
|
<YAxis
|
||||||
yAxisId='right'
|
|
||||||
domain={[0, 10]}
|
|
||||||
orientation='right'
|
|
||||||
hide={true}
|
|
||||||
width={35}
|
|
||||||
/>
|
|
||||||
<YAxis
|
|
||||||
yAxisId='left'
|
|
||||||
domain={[0, 6000]}
|
domain={[0, 6000]}
|
||||||
width={35}
|
width={35}
|
||||||
tickCount={6}
|
ticks={['0', '1k', '2k', '3k', '4k', '5k', '6k']}
|
||||||
tickFormatter={(tick) => tick === 0 ? 0 : (tick / 1000) + 'K'}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<CartesianGrid strokeDasharray='3 3'/>
|
<CartesianGrid strokeDasharray='3 3'/>
|
||||||
@@ -179,15 +170,6 @@ function SolarPower({end, duration}) {
|
|||||||
<Label value='Midnight' offset={7} position='top' fill='blue' />
|
<Label value='Midnight' offset={7} position='top' fill='blue' />
|
||||||
</ReferenceLine>
|
</ReferenceLine>
|
||||||
|
|
||||||
<Bar
|
|
||||||
yAxisId='right'
|
|
||||||
type='monotone'
|
|
||||||
dataKey='lifetime_energy'
|
|
||||||
name='Energy'
|
|
||||||
fill='green'
|
|
||||||
isAnimationActive={false}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Line
|
<Line
|
||||||
yAxisId='left'
|
yAxisId='left'
|
||||||
type='monotone'
|
type='monotone'
|
||||||
|
|||||||
Reference in New Issue
Block a user