{
"type": "bar",
"time": null,
"labels": true,
"marker": null,
"xtitle": null,
"ytitle": null,
"ztitle": null,
"xticks": null,
"yticks": null,
"ystep": null,
"xmin": null,
"ymin": null,
"xmax": null,
"ymax": null,
"toolbar": null,
"show_legend": false,
"logarithmic": null,
"horizontal": true,
"stacked": null,
"height": 360,
"colors": [],
"points": [["Click a bar to see the rows behind it","ZH",117,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=ZH"],["Click a bar to see the rows behind it","BE",63,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=BE"],["Click a bar to see the rows behind it","FR",56,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=FR"],["Click a bar to see the rows behind it","VD",50,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=VD"],["Click a bar to see the rows behind it","AG",42,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=AG"],["Click a bar to see the rows behind it","SG",32,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=SG"],["Click a bar to see the rows behind it","LU",27,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=LU"],["Click a bar to see the rows behind it","GE",27,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=GE"],["Click a bar to see the rows behind it","TI",26,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=TI"],["Click a bar to see the rows behind it","BS",19,null,null,"rows.sql?m=appointments_operations&period=2026-09&dim=canton&value=BS"]]
}
The SQL behind this page
select canton, count(*)
from leads
where appointment_status in ('scheduled', 'held')
and appointment_at >= '2026-09-01' and appointment_at < '2026-10-01' -- Europe/Zurich
group by canton
order by 2 desc;