Svelte Starter: Dataviz + Personalisierung (Zeitverwendung)
A donut chart visualizes average daily time use in minutes per day across broad activity categories like work, education, and media use for selected age groups. Buttons above the chart switch between demographic cohorts, re-processing the underlying data and updating the chart and legend accordingly. Each ring segment shows its value as a label, and hovering over a segment reveals a tooltip with the exact category and minutes. The visualization is built with Svelte, renders as SVG using the `d3.arc` and `d3.pie` APIs for arc generation, and uses an ordinal color scale from `d3.scaleOrdinal` with the Tableau 10 scheme.