root = Card([header, salesTodayCard, footTrafficChart, bestSellersTable, outOfStockList, staffList, avgBasketText, returnsText, promotionChart, registerList, reorderBtn, storeSelect, weeklyComparison])
header = CardHeader("Store Dashboard", null)
salesLabel = TextContent("Sales Today", "default")
salesValue = TextContent("15000", "large")
targetLabel = TextContent("Target", "default")
targetValue = TextContent("20000", "large")
salesTodayCard = Card([salesLabel, salesValue, targetLabel, targetValue])
footTrafficLabels = ["9am", "12pm", "3pm", "6pm", "9pm"]
footTrafficSeries = Series("Foot Traffic", [120, 150, 200, 180, 130])
footTrafficChart = LineChart(footTrafficLabels, footTrafficSeries, "natural", "Time", "People")
colItem = Col("Item", ["Widget A", "Widget B", "Widget C"], "string")
colUnits = Col("Units", [150, 80, 200], "number")
bestSellersTable = Table(colItem, colUnits)
liMilk = ListItem("Milk", null, null, null)
liBread = ListItem("Bread", null, null, null)
liEggs = ListItem("Eggs", null, null, null)
outOfStockList = ListBlock([liMilk, liBread, liEggs], "number")
liAlice = ListItem("Alice", null, null, null)
liBob = ListItem("Bob", null, null, null)
liCharlie = ListItem("Charlie", null, null, null)
staffList = ListBlock([liAlice, liBob, liCharlie], "number")
avgBasketText = TextContent("Average Basket: $45", "large")
returnsText = TextContent("Returns This Week: 12", "large")
promotionLabels = ["Spring Sale", "Holiday Discount", "New Year Offer"]
promotionSeries = Series("Revenue", [5000, 3000, 4000])
promotionChart = BarChart(promotionLabels, promotionSeries, "grouped", "Promotion", "Revenue")
liReg1 = ListItem("Register 1", "Open", null, null)
liReg2 = ListItem("Register 2", "Closed", null, null)
liReg3 = ListItem("Register 3", "Open", null, null)
registerList = ListBlock([liReg1, liReg2, liReg3], "number")
reorderBtn = Button("Reorder Item", null, "primary", "normal", "medium")
storeS = SelectItem("store_a", "Store A")
storeB = SelectItem("store_b", "Store B")
storeC = SelectItem("store_c", "Store C")
storeSelect = Select("store_select", [storeS, storeB, storeC], "Choose a store", null, null, "medium")
weeklyLabels = ["Mon", "Tue", "Wed", "Thu", "Fri"]
seriesThisWeek = Series("This Week", [100,130,150,170,200])
seriesLastWeek = Series("Last Week", [80,110,130,150,170])
weeklyComparison = LineChart(weeklyLabels, [seriesThisWeek, seriesLastWeek], "natural", "Day", "Units Sold")