Public
Edited
Sep 5, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import_Tatbestand = // "KTZH_00001202_00003503_Gewaltstraftaten_Kanton.csv" //FileAttachment(
//)
// .csv()
d3
.csv(
"https://www.web.statistik.zh.ch/ogd/daten/ressourcen/KTZH_00001202_00003503.csv",
{ typed: true }
)
.then(function (data) {
data.forEach(function (d) {
d.Ausgangsjahr = d.Ausgangsjahr;
d.Jahr = +d.Ausgangsjahr;
d.Straftaten_total = +d.Straftaten_total;
});
return data;
})
Insert cell
Inputs.table(import_Tatbestand)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { fonts as ZHFonts } from "@statistikzh/common-styles"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
stylesheet = html`<!--<link rel='stylesheet'
href='https://www.zh.ch/etc.clientlibs/zhweb/core/clientlibs/publish/resources/css/main.04fb0ec.min.css' />-->
<link rel='stylesheet' href='https://cdn.rawgit.com/resmartiZH/zhwebfiles/main/zhwebstyle.css'/>`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more