root = Card([header, kpiRow, trendChart, insight])
header = CardHeader("Morning check-in", "Revenue so far today vs the same time yesterday")
kpiRow = Card([todayBlock, yesterdayBlock, changeBlock], "sunk", "row", "m")
todayBlock = Card([todayLabel, todayValue])
todayLabel = TextContent("Today so far", "small")
todayValue = TextContent("$412.50", "large-heavy")
yesterdayBlock = Card([yesterdayLabel, yesterdayValue])
yesterdayLabel = TextContent("Yesterday, same time", "small")
yesterdayValue = TextContent("$367.00", "large-heavy")
changeBlock = Card([changeLabel, changeTag])
changeLabel = TextContent("Change", "small")
changeTag = Tag("+12.4%", null, null, "success")
trendChart = LineChart(["8 AM", "9 AM", "10 AM", "11 AM"], [todaySeries, yesterdaySeries], "natural", "Time of day", "Revenue ($)")
todaySeries = Series("Today", [42, 85, 138, 147.5])
yesterdaySeries = Series("Yesterday", [38, 74, 121, 134])
insight = Callout("success", "Ahead of yesterday", "Revenue is up $45.50 (+12.4%) compared with the same time yesterday.")