A dashboard from one spec.
Four KPIs, four charts and two filters, laid out by dashboard(): numbers first, the trend full width, balanced rows, one color per region in every chart, one source line. Click a region or a channel: every chart and KPI follows. How it decides →
How are southern sales doing?
Sales by month, region and channel, 2024–2025, CLP millions
Sales 2025
21K
▲ +19%vs 2024
Orders 2025
513K
▲ +19%vs 2024
Average ticket, CLP thousands
41.8
■ 0%vs 2024
Online share
36.1%
▲ +13%vs 2024
Show spec
dashboard({
title: "How are southern sales doing?",
subtitle: "Sales by month, region and channel, 2024–2025, CLP millions",
source: "illustrative data",
updated: "2026-01-05",
locale: "en",
data: [ /* 288 rows: month, year, region, channel, sales, orders */ ],
kpis: [
{
label: "Sales 2025",
field: "sales",
agg: "sum",
format: "compact",
compare: {
field: "year",
current: 2025,
previous: 2024
},
trendBy: "month"
},
{
label: "Orders 2025",
field: "orders",
agg: "sum",
format: "compact",
compare: {
field: "year",
current: 2025,
previous: 2024
},
trendBy: "month"
},
{
label: "Average ticket, CLP thousands",
field: "sales",
agg: "ratio",
over: "orders",
scale: 1000,
format: {
decimals: 1
},
compare: {
field: "year",
current: 2025,
previous: 2024
}
},
{
label: "Online share",
value: 0.3607069576571535,
format: "percent",
delta: 0.12508890440745274,
period: "vs 2024"
}
],
filters: [
{
field: "region",
label: "Region"
},
{
field: "channel",
label: "Channel"
}
],
charts: [
{
type: "line",
x: "month",
y: "sales",
series: "region",
title: "Ñuble grew 37% this year, faster than any other region",
subtitle: "Monthly sales by region",
highlight: "Ñuble"
},
{
type: "choropleth",
geo: "chile",
key: "region",
value: "sales",
fitTo: [
"Biobío",
"Ñuble",
"Araucanía",
"Maule"
],
missing: "plain",
title: "Biobío makes 36% of sales",
subtitle: "Sales 2024–2025 by region",
aggregate: "sum",
format: "compact",
tall: false,
legendTitle: "Sales"
},
{
type: "bar",
x: "channel",
y: "sales",
series: "year",
title: "Online is the only channel growing strongly",
subtitle: "Sales by channel and year",
format: "compact"
},
{
type: "treemap",
path: [
"region",
"channel"
],
value: "sales",
title: "Physical stores are still half the business",
subtitle: "Sales by region and channel"
}
]
})