Published
Edited
Dec 14, 2021
1 fork
Insert cell
Insert cell
chart = Plot.plot({
width: width+300,
height: width,
clip: true,
facet:
{
data: array,
y: ((d=>d.Long_DMS*-1)),
//((d=>d.Long_DMS*-1)),
x: "Lat2",
//filter: d => d.Long_DMS % 2 === 0,
inset: 10,
},
fx: {
//domain: [45,50,55,60,65,70,75],
reverse: true,
},
fy:
{
//domain: [-8,-6,-4,-2,0,2,4,6,8,10,12,14,16],
},
y: {
//type: "symlog",
//offset: 50,
//marginLeft: 100,
domain: [0,20],
clamp: true,
//range:[75,20],
//insetTop:-100,
//reverse: true,
},
r: {
range: [1,10]
},
color: {
type: "categorical",
domain: (["BOL","BRA","COL","ECU","FR1","GUY","PER","SUR","VEN"]),
scheme: "tableau10",
//range: (["#24a6a8","#6b6b53",]),
},
marks: [
Plot.ruleY([0]),
// Plot.frame(
// {
// fill: "white",
// },
// ),
Plot.rectY(array,
Plot.binX({y: "count", thresholds: 52},
{
x: "Week",
sort: "doy",
//y: "Long_DMS",
fill: "red",
inset: -0.5,
//stroke: "sex"
})),
// Plot.frame({
// stroke: "black",
// insetBottom: [30],
// fill: "black",
// mixBlendMode: "burn",
// }),
//Plot.frame(),
]
})
Insert cell
array = FileAttachment("Mapped_Fires_Amazon_Project_Regions_2_Dates_Lat_Long_Viz_2.csv").csv({typed: true})
Insert cell
penguins = FileAttachment("penguins.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