Public
Edited
Feb 7
2 forks
Insert cell
Insert cell
hunt_data = FileAttachment("Hunt_dataNew@9.json").json()
Insert cell
Insert cell
Insert cell
entities = data.map(d=>Object.keys(d.entities))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
grid:true,
title: "Editors per Issue",
marginLeft:250,
marginBottom: 100,
width: 1280,
color:{legend:true},
style:{fontSize:20},
marks: [
Plot.cell(editors, {
x: d => d.issue,
y: d=> d.editor,
fill: d=>d.level,
//y: d=> biblTitles.indexOf(d)+1,
title: d=>"| title: " + d.title + "\n author: " + d.author + "\n editor: " + d.editor,
tip:true
}),
Plot.axisX({label: "Indicator Issues", labelAnchor: "right", fontSize: 15}),
Plot.axisY({label: "Titles per Issue", labelAnchor: "top", fontSize: 15}),
]
})
Insert cell
Insert cell
hunt_dataok1 = FileAttachment("Hunt_dataNew@9.json").json()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
grid:true,
title: "Places per issue",
marginLeft:300,
width: 1180,
color:{legend:true},
marks: [
Plot.cell(places, {
x: d => d.issue,
y: d=> d.name,
fill: d=>d.name,
tip: true,
})
]
})
Insert cell
Insert cell
Plot.plot({
grid:true,
title: "Organizations per issue",
marginLeft:300,
width: 1180,
color:{legend:true},
marks: [
Plot.cell(org, {
x: d => d.issue,
y: d=> d.name,
fill: d=>d.name,
tip: true,
})
]
})
Insert cell
Insert cell
Plot.plot({
grid:true,
title: "Dates per issue",
marginLeft:70,
width: 1180,
color:{legend:true},
marks: [
Plot.cell(dates, {
x: d => d.issue,
y: d=> d.name,
fill: d=>d.issue,
tip: true,
})
]
})
Insert cell
Insert cell
Insert cell
persons
X
issue
Y
count
name
Color
type
Size
Facet X
Facet Y
Mark
bar
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
grid:true,
title: "Titles and authors cited per issue",
marginLeft:300,
marginBottom: 150,
width: 1180,
color:{legend:true},
x:{tickRotate: -45},
marks: [
Plot.cell(biblTitles, {
x: d => d.author,
y: d=> d.title,
fill: d=>d.issue,
tip: true,
})
]
})
Insert cell
data.map(d=>d.entities['persons']['real'])
Insert cell
data.map(d=>Object.keys(d.entities['persons']['real']))
Insert cell
Insert cell
Insert cell
require('d3-collection')
Insert cell
d3 = require("d3-array")
Insert cell
hunt_data_vlast = FileAttachment("Hunt_dataNew@9.json").json()
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