Published
Edited
Apr 7, 2020
Insert cell
Insert cell
Insert cell
Insert cell
md`# Map Interpretation
The Asian population of the continental United States in 2010 shows there are higher concentrations on the east and west coasts, as well as parts of the northern midwest. The highest Asian population is shown in California and New York, demonstrated by the largest blue circles, which could be due to the high rates of diversity in these states and their higher than average populations. It is likely that the Asian population is fewer than 100,000 in most of the midwest, and south due to the populations here over all being relatively lower than those on the coasts.`
Insert cell
Insert cell
height = 610
Insert cell
width = 975
Insert cell
path_points = d3.geoPath().projection(projection)
Insert cell
path_basemap = d3.geoPath().projection(projection)
Insert cell
projection = d3.geoAlbers()
Insert cell
format = d3.format(".2s")
Insert cell
//proportional symbols
//radius = d3.scaleSqrt([0, d3.max(attribute)], [0, 30])
Insert cell
radius = d3.scaleThreshold()
.domain(naturalbreaks)
.range(radiusArray)
Insert cell
sizeArrayForLegend = Array.from(radiusArray, d=>Math.PI*Math.pow(d, 2))
Insert cell
radiusArray = [3, 9, 23, 40]
Insert cell
circleLabels = Array.from(naturalbreaks, d=> format(Math.pow(d, 2)))
Insert cell
colors = d3.scaleThreshold()
.domain(naturalbreaks)
.range(Blue)
Insert cell
Blue = ["#f1eef6", "#bdc9e1", "#74a9cf", "#0570b0"]
Insert cell
naturalbreaks = simple.ckmeans(attribute, 4).map(v => v.pop())
Insert cell
d3.max(attribute)
Insert cell
attribute = Array.from(points.features, d=>Math.sqrt(d.properties[attributeName]))
Insert cell
attributeName = "ASIAN"
Insert cell
idName = "STATE_NAME"
Insert cell
//import the point data (geojson)
points = FileAttachment("uspoints.geojson").json()
Insert cell
//import the polygon base map data
basepolygons = FileAttachment("ussimple.json").json()
Insert cell
Insert cell
Insert cell
Insert cell
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