// Add the new property 'when_legal' based on the additional data
return{
...d,
when_legal:matchingRow?+matchingRow.year:null
}
});
// Now, each object in the output array has a new 'when_legal' property based on the legality data
d3Legend=require("d3-svg-legend")
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.