Public
Edited
May 12, 2023
5 forks
4 stars
Insert cell
Insert cell
Plot.plot({
inset: 10,
aspectRatio: 1,
color: {
label: "Speed (m/s)",
zero: true,
legend: true
},
marks: [
Plot.vector(wind, {
x: "longitude",
y: "latitude",
rotate: ({u, v}) => Math.atan2(u, v) * 180 / Math.PI,
length: ({u, v}) => Math.hypot(u, v),
stroke: ({u, v}) => Math.hypot(u, v)
})
]
})
Insert cell
wind = FileAttachment("wind.csv").csv({typed: true})
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