Plot.plot({
width: 500,
height: 400,
inset: 0,
projection: ({ width, height }) =>
d3
.geoConicEquidistant()
.rotate([-86, -129.5, -170])
.translate([width / 2, height / 2])
.scale(width * 1.1),
color: {
type: "log",
scheme: "YlOrRd",
legend: true,
tickFormat: "d",
label: "Size (Hectares)"
},
marks: [
Plot.frame(),
Plot.geo(canada, {
stroke: "black",
fill: "#f5f5f5"
}),
Plot.dot(data, {
filter: (d) => d.YEAR === currYear,
x: "LONGITUDE",
y: "LATITUDE",
r: "SIZE_HA",
fill: "SIZE_HA",
fillOpacity: 0.9,
stroke: "SIZE_HA",
strokeWidth: 1,
strokeOpacity: 1
})
]
})