Tomato DLI card with history
Use this for a dashboard tile that shows today and the past week.
<script lang="ts">
import { DliCard } from '@cropwatchdevelopment/cwui';
const history = [
{ date: "2026-05-23", value: 18.2 },
{ date: "2026-05-24", value: 21.5 },
{ date: "2026-05-25", value: 26.1 },
{ date: "2026-05-26", value: 24.7 },
{ date: "2026-05-27", value: 15.9 },
{ date: "2026-05-28", value: 28.4 },
{ date: "2026-05-29", value: 30.2 }
];
</script>
<DliCard
value={24.3}
targetMin={20}
targetMax={30}
max={40}
cropName="Tomato"
history={history}
/>