Element: #200 Year toggle (charts/heatmap) What it shows: A calendar heatmap with 2026 and 2025 buttons that swap the dataset and date range. When to use: Letting users compare activity across years in the same calendar view. Spec: - `let year = $state<2025 | 2026>(2026)` selects the year - Two ` (year = 2026)}` and `onclick={() => (year = 2025)}` - `data` holds `gen(2026, 258, 1.4)` and `gen(2025, 365, 2.1)` - ` `${v} commits`}` and `height="160px"` Tags: heatmap-chart, calendar, year-toggle, button, state, range Needs: @codeatlasdev/ui@4.4.0 + echarts Components: Card, Flex, Button, HeatmapChart Live demo: https://ui.codeatlas.com.br/docs/charts/heatmap#year-toggle
`${v} commits`} height="160px" />