Published
Edited
Jan 5, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
## New version - done with plot
Insert cell
Plot.plot({
marks: [
Plot.line(data, {
x: "Solar Insolation",
y: "Latitude"
}),
Plot.dot(data, {
x: "Solar Insolation",
y: "Latitude",
fill: "black"
}),
Plot.text(data, {
x: "Solar Insolation",
y: "Latitude",
text: (d) => `${d["Solar Insolation"]} kw/h`,
textAnchor: "start",
dx: 10
})
],
x: { axis: null },
y: {
ticks: data.map((d) => +d["Latitude"]),
tickFormat: (d, i) => data[i].City,
tickSize: 0
},
marginLeft: 200,
marginRight: 100,
width: 400,
height: 480
})
Insert cell
## Original - done with straight d3
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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