root = Card([header, kpis, trendSection, productsSection, conversionSection, actions])
header = CardHeader("Monthly Sales Check", "Founder overview — all figures for this month")
kpis = Table([kpiMetric, kpiValue])
kpiMetric = Col("Metric", ["Revenue", "Conversion"])
kpiValue = Col("Value", ["$84,200", "3.4%"])
trendSection = Card([trendHeading, trendChart], "sunk")
trendHeading = Heading("Revenue — last 6 months", "h3")
trendChart = LineChart(["Jan", "Feb", "Mar", "Apr", "May", "Jun"], [revenueSeries], "natural", "Month", "USD")
revenueSeries = Series("Revenue", [51200, 58800, 63400, 70200, 76900, 84200])
productsSection = Card([productsHeading, productsTable], "sunk")
productsHeading = Heading("Best-selling products", "h3")
productsTable = Table([productName, productUnits])
productName = Col("Product", ["Aurora Headphones", "Nimbus Keyboard", "Pulse Mouse"])
productUnits = Col("Units sold", [1240, 980, 865])
conversionSection = Card([conversionHeading, conversionChart], "sunk")
conversionHeading = Heading("Conversion rate", "h3")
conversionChart = RadialChart(["Conversion"], [34])
actions = Buttons([downloadBtn])
downloadBtn = Button("Download numbers")