// See all styles here: https://docs.mapbox.com/api/maps/styles/
style:"mapbox://styles/mapbox/light-v9",
zoom:9.7,
center:[-122.2605,37.5371],
interactive:false
});
{
// TODO: ADD CODE HERE
constdata=d3.csv("FILE_URL_HERE",
(d)=>{
// TODO: Add any data pre-processing here, if necesary
returnd;
}
)
// This function projects the coordinates onto x, y values on the map
functionproject(d){
returnmap.project(newmapboxgl.LngLat(d[0],d[1]));
}
}
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.