Derived room VPD from temperature and RH
This is the easiest way to use the chart when upstream data is raw room climate data.
<CwVPDChart
plant="Tomato"
growthStage="Flower set"
targetMin={1.0}
targetMax={1.3}
airTemperatureC={27}
leafTemperatureC={26.1}
relativeHumidity={60}
updatedAt={Date.now()}
/>
Direct VPD reading with Fahrenheit labels
Use `current` when VPD is already calculated elsewhere and you only want the matrix as context.
<CwVPDChart
plant="Pepper"
growthStage="Late fruiting"
current={1.18}
targetMin={1.1}
targetMax={1.4}
useF
showLegend={false}
showSummary={false}
temperatureValuesC={[18, 20, 22, 24, 26, 28, 30]}
humidityValues={[40, 50, 60, 70, 80, 90]}
/>
Custom climate stage bands
This pattern is useful when your crop strategy does not match the default stage groupings.
<script lang="ts">
const stageBands = [
{ label: 'Clone / Rooting', min: 0, max: 0.75, tone: 'humid' },
{ label: 'Vegetative', min: 0.75, max: 1.15, tone: 'balanced' },
{ label: 'Generative', min: 1.15, max: 1.6, tone: 'flower' }
];
</script>
<CwVPDChart
plant="Cannabis"
growthStage="Generative push"
targetMin={1.15}
targetMax={1.45}
airTemperatureC={29}
relativeHumidity={56}
stageBands={stageBands}
/>