Public
Edited
Jul 2, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
color: {
type: "quantile",
n: 8,
scheme: "Blues",
label: "Sprayable Hours in April/May",
legend: true,
format: ".2f"
},
projection: "albers-usa",
width,
marks: [
Plot.geo(nation),
Plot.geo(states, { strokeOpacity: 0.9 }),
Plot.geo(counties, {fill: d => good_filtered.get(d.id),title: d=> [d.properties.name,d.properties.state,good_filtered.get(d.id)]}),
Plot.geo(counties, { strokeOpacity: 0.1}),
//Plot.dot(randomPoints.map(d => d.coordinates),{fill:'blue'})
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
good_filtered = {
let temperature = Temperature;
let windSpeed = WindSpeed;
let humidity = Humidity;

let regex = new RegExp(`wind_speed=${windSpeed};humdity=${humidity};temp=${temperature}`);

let filtered_data = par2023.filter(d => regex.test(d.meta_info));
let dataMap = new Map(filtered_data.map(d => [d.fips, d.count]));

return dataMap
}
Insert cell
parquet_2023@1.parquet
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more