refactor: stack soil moisture charts with MultiLineChart
Co-authored-by: aider (gemini/gemini-3.1-pro-preview) <aider@aider.chat>
This commit is contained in:
+11
-3
@@ -883,9 +883,17 @@ function Graphs({end, duration}) {
|
|||||||
unitKey='Hpa'
|
unitKey='Hpa'
|
||||||
/>
|
/>
|
||||||
<WH51Soil name='Side Garden Soil Moisture' sensorName='Side Garden' end={end} duration={duration} />
|
<WH51Soil name='Side Garden Soil Moisture' sensorName='Side Garden' end={end} duration={duration} />
|
||||||
<Soil name='Dumb Cane Soil Moisture' sensorName='Dumb Cane' end={end} duration={duration} />
|
<MultiLineChart
|
||||||
<Soil name='Kitchen Pothos Soil Moisture' sensorName='Kitchen Pothos' end={end} duration={duration} />
|
title='Soil Moisture'
|
||||||
<Soil name='Dracaena Soil Moisture' sensorName='Dracaena' end={end} duration={duration} />
|
measurement='soil'
|
||||||
|
dataKey='soil'
|
||||||
|
sensors={['Dumb Cane', 'Kitchen Pothos', 'Dracaena']}
|
||||||
|
colors={['black', 'red', 'blue']}
|
||||||
|
end={end}
|
||||||
|
duration={duration}
|
||||||
|
yDomain={[0, 1000]}
|
||||||
|
unitKey='Soil'
|
||||||
|
/>
|
||||||
|
|
||||||
{!!api_key ||
|
{!!api_key ||
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user