Public
Edited
Jun 14, 2023
Insert cell
Insert cell
incidents-adv-asn@5.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
height: 780,
color: {
scheme: "reds",
domain: incidentsAdvAsn1.incidents,
},
marks: [
Plot.dot(incidentsAdvAsn1,
Plot.dodgeY({
x: "incidents_adv_asn",
r: "adv_asn",
fill: "incidents",
padding: 2,
stroke: "#000",
strokeWidth: 1
})),
Plot.ruleX([0.030508137], {stroke: "red", strokeWidth: 2}),
Plot.text(
incidentsAdvAsn1,
Plot.filter(
(d) => d.incidents >= 50,
Plot.dodgeY({
x: "incidents_adv_asn",
r: "adv_asn",
padding: 2,
fill: "#000",
stroke: "pink",
text: "alpha2"
})
))
]
})
Insert cell
Plot.plot({
height: 780,
color: {
scheme: "reds",
domain: incidentsAdvAsn1.culprits,
},
marks: [
Plot.dot(incidentsAdvAsn1,
Plot.dodgeY({
x: "culprits_adv_asn",
r: "adv_asn",
fill: "culprits",
padding: 2,
stroke: "#000",
strokeWidth: 1
})),
Plot.ruleX([0.030333947], {stroke: "red", strokeWidth: 2}),
Plot.text(
incidentsAdvAsn1,
Plot.filter(
(d) => d.culprits >= 50,
Plot.dodgeY({
x: "culprits_adv_asn",
r: "adv_asn",
padding: 2,
fill: "#000",
stroke: "pink",
text: "alpha2"
})
))
]
})
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