Last active
May 10, 2021 10:51
Force Layout to Place Labels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit | |
height: 650 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<body></body> | |
<script> | |
// Define margins, dimensions, and some line colors | |
const margin = {top: 40, right: 120, bottom: 30, left: 40}; | |
const width = 800 - margin.left - margin.right; | |
const height = 400 - margin.top - margin.bottom; | |
const colors = ['red', 'green', 'limegreen', 'blue', 'skyblue', 'gray', 'magenta']; | |
// Define the scales and tell D3 how to draw the line | |
const x = d3.scaleLinear().domain([1910, 2010]).range([0, width]); | |
const y = d3.scaleLinear().domain([0, 40000000]).range([height, 0]); | |
const line = d3.line().x(d => x(d.year)).y(d => y(d.population)); | |
// Create areas for the chart and user input | |
const chart = d3.select('body') | |
.append('svg') | |
.attr('width', width + margin.left + margin.right) | |
.attr('height', height + margin.top + margin.bottom) | |
.append('g') | |
.attr('transform','translate('+ margin.left+','+margin.top+')'); | |
const userInput = d3.select('body') | |
.append('div') | |
.style('width', width + margin.left + margin.right) | |
.style('height', '14em') | |
.style('display', 'flex') | |
.style('flex-flow', 'column wrap'); | |
// Add the axes and a title | |
const xAxis = d3.axisBottom(x).tickFormat(d3.format('.4')); | |
const yAxis = d3.axisLeft(y).tickFormat(d3.format('.2s')); | |
chart.append('g').call(yAxis); | |
chart.append('g').attr('transform', 'translate(0,' + height + ')').call(xAxis); | |
chart.append('text').html('State Population Over Time').attr('x', 200); | |
// Load the data | |
let states = []; | |
d3.json('state-populations.json', d => { | |
states = d; | |
drawUserInput(); | |
drawChart(); | |
}); | |
function drawUserInput() { | |
userInput.selectAll('checkboxes') | |
.data(states).enter() | |
.append('label') | |
.style('width', '10em') | |
.html(d => d.name) | |
.append('input') | |
.attr('type', 'checkbox') | |
.property('checked', d => { | |
if (d.show) { | |
const color = colors.shift(); | |
d.color = color; | |
colors.push(color); | |
} | |
return d.show; | |
}) | |
.on('change', d => { | |
d.show = !d.show; | |
if (!d.color) { | |
const color = colors.shift(); | |
d.color = color; | |
colors.push(color); | |
} | |
drawChart(); | |
}); | |
} | |
function drawChart() { | |
const visibleStates = states.filter(s => s.show); | |
const lines = chart.selectAll('.population-line').data(visibleStates, d => d.name); | |
lines.exit().remove(); | |
lines.enter().append('path') | |
.attr('class', 'population-line') | |
.attr('fill', 'none') | |
.attr('stroke', d => d.color) | |
.attr('stroke-width', 2) | |
.datum(d => d.history) | |
.attr('d', line); | |
drawLegend(); | |
} | |
function drawLegend() { | |
const visibleStates = states.filter(s => s.show); | |
const labelHeight = 14; | |
// Create some nodes | |
const labels = visibleStates.map(s => { | |
return { | |
fx: 0, | |
targetY: y(s.currentPopulation) | |
}; | |
}); | |
// Define a custom force | |
const forceClamp = (min, max) => { | |
let nodes; | |
const force = () => { | |
nodes.forEach(n => { | |
if (n.y > max) n.y = max; | |
if (n.y < min) n.y = min; | |
}); | |
}; | |
force.initialize = (_) => nodes = _; | |
return force; | |
} | |
// Set up the force simulation | |
const force = d3.forceSimulation() | |
.nodes(labels) | |
.force('collide', d3.forceCollide(labelHeight / 2)) | |
.force('y', d3.forceY(d => d.targetY).strength(1)) | |
.force('clamp', forceClamp(0, height)) | |
.stop(); | |
// Execute the simulation | |
for (let i = 0; i < 300; i++) force.tick(); | |
// Assign values to the appropriate marker | |
labels.sort((a, b) => a.y - b.y); | |
visibleStates.sort((a, b) => b.currentPopulation - a.currentPopulation); | |
visibleStates.forEach((state, i) => state.y = labels[i].y); | |
// Add labels | |
const legendItems = chart.selectAll('.legend-item').data(visibleStates, d => d.name); | |
legendItems.exit().remove(); | |
legendItems.attr('y', d => d.y); | |
legendItems.enter().append('text') | |
.attr('class', 'legend-item') | |
.html(d => d.name) | |
.attr('fill', d => d.color) | |
.attr('font-size', labelHeight) | |
.attr('alignment-baseline', 'middle') | |
.attr('x', width) | |
.attr('dx', '.5em') | |
.attr('y', d => d.y); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Alabama", | |
"show": false, | |
"currentPopulation": 4779736, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2138093 | |
}, | |
{ | |
"year": 1920, | |
"population": 2348174 | |
}, | |
{ | |
"year": 1930, | |
"population": 2646248 | |
}, | |
{ | |
"year": 1940, | |
"population": 2832961 | |
}, | |
{ | |
"year": 1950, | |
"population": 3061743 | |
}, | |
{ | |
"year": 1960, | |
"population": 3266740 | |
}, | |
{ | |
"year": 1970, | |
"population": 3444165 | |
}, | |
{ | |
"year": 1980, | |
"population": 3893888 | |
}, | |
{ | |
"year": 1990, | |
"population": 4040587 | |
}, | |
{ | |
"year": 2000, | |
"population": 4447100 | |
}, | |
{ | |
"year": 2010, | |
"population": 4779736 | |
} | |
] | |
}, | |
{ | |
"name": "Alaska", | |
"show": false, | |
"currentPopulation": 710231, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 64356 | |
}, | |
{ | |
"year": 1920, | |
"population": 55036 | |
}, | |
{ | |
"year": 1930, | |
"population": 59278 | |
}, | |
{ | |
"year": 1940, | |
"population": 72524 | |
}, | |
{ | |
"year": 1950, | |
"population": 128643 | |
}, | |
{ | |
"year": 1960, | |
"population": 226167 | |
}, | |
{ | |
"year": 1970, | |
"population": 300382 | |
}, | |
{ | |
"year": 1980, | |
"population": 401851 | |
}, | |
{ | |
"year": 1990, | |
"population": 550043 | |
}, | |
{ | |
"year": 2000, | |
"population": 626932 | |
}, | |
{ | |
"year": 2010, | |
"population": 710231 | |
} | |
] | |
}, | |
{ | |
"name": "Arizona", | |
"show": false, | |
"currentPopulation": 6392017, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 204354 | |
}, | |
{ | |
"year": 1920, | |
"population": 334162 | |
}, | |
{ | |
"year": 1930, | |
"population": 435573 | |
}, | |
{ | |
"year": 1940, | |
"population": 499261 | |
}, | |
{ | |
"year": 1950, | |
"population": 749587 | |
}, | |
{ | |
"year": 1960, | |
"population": 1302161 | |
}, | |
{ | |
"year": 1970, | |
"population": 1770900 | |
}, | |
{ | |
"year": 1980, | |
"population": 2718215 | |
}, | |
{ | |
"year": 1990, | |
"population": 3665228 | |
}, | |
{ | |
"year": 2000, | |
"population": 5130632 | |
}, | |
{ | |
"year": 2010, | |
"population": 6392017 | |
} | |
] | |
}, | |
{ | |
"name": "Arkansas", | |
"show": false, | |
"currentPopulation": 2915918, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1574449 | |
}, | |
{ | |
"year": 1920, | |
"population": 1752204 | |
}, | |
{ | |
"year": 1930, | |
"population": 1854482 | |
}, | |
{ | |
"year": 1940, | |
"population": 1949387 | |
}, | |
{ | |
"year": 1950, | |
"population": 1909511 | |
}, | |
{ | |
"year": 1960, | |
"population": 1786272 | |
}, | |
{ | |
"year": 1970, | |
"population": 1923295 | |
}, | |
{ | |
"year": 1980, | |
"population": 2286435 | |
}, | |
{ | |
"year": 1990, | |
"population": 2350725 | |
}, | |
{ | |
"year": 2000, | |
"population": 2673400 | |
}, | |
{ | |
"year": 2010, | |
"population": 2915918 | |
} | |
] | |
}, | |
{ | |
"name": "California", | |
"show": true, | |
"currentPopulation": 37253956, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2377549 | |
}, | |
{ | |
"year": 1920, | |
"population": 3426861 | |
}, | |
{ | |
"year": 1930, | |
"population": 5677251 | |
}, | |
{ | |
"year": 1940, | |
"population": 6907387 | |
}, | |
{ | |
"year": 1950, | |
"population": 10586223 | |
}, | |
{ | |
"year": 1960, | |
"population": 15717204 | |
}, | |
{ | |
"year": 1970, | |
"population": 19953134 | |
}, | |
{ | |
"year": 1980, | |
"population": 23667902 | |
}, | |
{ | |
"year": 1990, | |
"population": 29760021 | |
}, | |
{ | |
"year": 2000, | |
"population": 33871648 | |
}, | |
{ | |
"year": 2010, | |
"population": 37253956 | |
} | |
] | |
}, | |
{ | |
"name": "Colorado", | |
"show": false, | |
"currentPopulation": 5029196, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 799024 | |
}, | |
{ | |
"year": 1920, | |
"population": 939629 | |
}, | |
{ | |
"year": 1930, | |
"population": 1035791 | |
}, | |
{ | |
"year": 1940, | |
"population": 1123296 | |
}, | |
{ | |
"year": 1950, | |
"population": 1325089 | |
}, | |
{ | |
"year": 1960, | |
"population": 1753947 | |
}, | |
{ | |
"year": 1970, | |
"population": 2207259 | |
}, | |
{ | |
"year": 1980, | |
"population": 2889964 | |
}, | |
{ | |
"year": 1990, | |
"population": 3294394 | |
}, | |
{ | |
"year": 2000, | |
"population": 4301261 | |
}, | |
{ | |
"year": 2010, | |
"population": 5029196 | |
} | |
] | |
}, | |
{ | |
"name": "Connecticut", | |
"show": false, | |
"currentPopulation": 3574097, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1114756 | |
}, | |
{ | |
"year": 1920, | |
"population": 1380631 | |
}, | |
{ | |
"year": 1930, | |
"population": 1606903 | |
}, | |
{ | |
"year": 1940, | |
"population": 1709242 | |
}, | |
{ | |
"year": 1950, | |
"population": 2007280 | |
}, | |
{ | |
"year": 1960, | |
"population": 2535234 | |
}, | |
{ | |
"year": 1970, | |
"population": 3031709 | |
}, | |
{ | |
"year": 1980, | |
"population": 3107576 | |
}, | |
{ | |
"year": 1990, | |
"population": 3287116 | |
}, | |
{ | |
"year": 2000, | |
"population": 3405565 | |
}, | |
{ | |
"year": 2010, | |
"population": 3574097 | |
} | |
] | |
}, | |
{ | |
"name": "Delaware", | |
"show": false, | |
"currentPopulation": 897934, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 202322 | |
}, | |
{ | |
"year": 1920, | |
"population": 223003 | |
}, | |
{ | |
"year": 1930, | |
"population": 238380 | |
}, | |
{ | |
"year": 1940, | |
"population": 266505 | |
}, | |
{ | |
"year": 1950, | |
"population": 318085 | |
}, | |
{ | |
"year": 1960, | |
"population": 446292 | |
}, | |
{ | |
"year": 1970, | |
"population": 548104 | |
}, | |
{ | |
"year": 1980, | |
"population": 594338 | |
}, | |
{ | |
"year": 1990, | |
"population": 666168 | |
}, | |
{ | |
"year": 2000, | |
"population": 783600 | |
}, | |
{ | |
"year": 2010, | |
"population": 897934 | |
} | |
] | |
}, | |
{ | |
"name": "Florida", | |
"show": false, | |
"currentPopulation": 18801310, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 752619 | |
}, | |
{ | |
"year": 1920, | |
"population": 968470 | |
}, | |
{ | |
"year": 1930, | |
"population": 1468211 | |
}, | |
{ | |
"year": 1940, | |
"population": 1897414 | |
}, | |
{ | |
"year": 1950, | |
"population": 2771305 | |
}, | |
{ | |
"year": 1960, | |
"population": 4951560 | |
}, | |
{ | |
"year": 1970, | |
"population": 6789443 | |
}, | |
{ | |
"year": 1980, | |
"population": 9746324 | |
}, | |
{ | |
"year": 1990, | |
"population": 12937926 | |
}, | |
{ | |
"year": 2000, | |
"population": 15982378 | |
}, | |
{ | |
"year": 2010, | |
"population": 18801310 | |
} | |
] | |
}, | |
{ | |
"name": "Georgia", | |
"show": true, | |
"currentPopulation": 9687653, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2609121 | |
}, | |
{ | |
"year": 1920, | |
"population": 2895832 | |
}, | |
{ | |
"year": 1930, | |
"population": 2908506 | |
}, | |
{ | |
"year": 1940, | |
"population": 3123723 | |
}, | |
{ | |
"year": 1950, | |
"population": 3444578 | |
}, | |
{ | |
"year": 1960, | |
"population": 3943116 | |
}, | |
{ | |
"year": 1970, | |
"population": 4589575 | |
}, | |
{ | |
"year": 1980, | |
"population": 5463105 | |
}, | |
{ | |
"year": 1990, | |
"population": 6478216 | |
}, | |
{ | |
"year": 2000, | |
"population": 8186453 | |
}, | |
{ | |
"year": 2010, | |
"population": 9687653 | |
} | |
] | |
}, | |
{ | |
"name": "Hawaii", | |
"show": false, | |
"currentPopulation": 1360301, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 191909 | |
}, | |
{ | |
"year": 1920, | |
"population": 255912 | |
}, | |
{ | |
"year": 1930, | |
"population": 368336 | |
}, | |
{ | |
"year": 1940, | |
"population": 423330 | |
}, | |
{ | |
"year": 1950, | |
"population": 499794 | |
}, | |
{ | |
"year": 1960, | |
"population": 632772 | |
}, | |
{ | |
"year": 1970, | |
"population": 768561 | |
}, | |
{ | |
"year": 1980, | |
"population": 964691 | |
}, | |
{ | |
"year": 1990, | |
"population": 1108229 | |
}, | |
{ | |
"year": 2000, | |
"population": 1211537 | |
}, | |
{ | |
"year": 2010, | |
"population": 1360301 | |
} | |
] | |
}, | |
{ | |
"name": "Idaho", | |
"show": false, | |
"currentPopulation": 1567582, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 325594 | |
}, | |
{ | |
"year": 1920, | |
"population": 431866 | |
}, | |
{ | |
"year": 1930, | |
"population": 445032 | |
}, | |
{ | |
"year": 1940, | |
"population": 524873 | |
}, | |
{ | |
"year": 1950, | |
"population": 588637 | |
}, | |
{ | |
"year": 1960, | |
"population": 667191 | |
}, | |
{ | |
"year": 1970, | |
"population": 712567 | |
}, | |
{ | |
"year": 1980, | |
"population": 943935 | |
}, | |
{ | |
"year": 1990, | |
"population": 1006749 | |
}, | |
{ | |
"year": 2000, | |
"population": 1293953 | |
}, | |
{ | |
"year": 2010, | |
"population": 1567582 | |
} | |
] | |
}, | |
{ | |
"name": "Illinois", | |
"show": false, | |
"currentPopulation": 12830632, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 5638591 | |
}, | |
{ | |
"year": 1920, | |
"population": 6485280 | |
}, | |
{ | |
"year": 1930, | |
"population": 7630654 | |
}, | |
{ | |
"year": 1940, | |
"population": 7897241 | |
}, | |
{ | |
"year": 1950, | |
"population": 8712176 | |
}, | |
{ | |
"year": 1960, | |
"population": 10081158 | |
}, | |
{ | |
"year": 1970, | |
"population": 11113976 | |
}, | |
{ | |
"year": 1980, | |
"population": 11426518 | |
}, | |
{ | |
"year": 1990, | |
"population": 11430602 | |
}, | |
{ | |
"year": 2000, | |
"population": 12419293 | |
}, | |
{ | |
"year": 2010, | |
"population": 12830632 | |
} | |
] | |
}, | |
{ | |
"name": "Indiana", | |
"show": false, | |
"currentPopulation": 6483802, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2700876 | |
}, | |
{ | |
"year": 1920, | |
"population": 2930390 | |
}, | |
{ | |
"year": 1930, | |
"population": 3238503 | |
}, | |
{ | |
"year": 1940, | |
"population": 3427796 | |
}, | |
{ | |
"year": 1950, | |
"population": 3934224 | |
}, | |
{ | |
"year": 1960, | |
"population": 4662498 | |
}, | |
{ | |
"year": 1970, | |
"population": 5193669 | |
}, | |
{ | |
"year": 1980, | |
"population": 5490224 | |
}, | |
{ | |
"year": 1990, | |
"population": 5544159 | |
}, | |
{ | |
"year": 2000, | |
"population": 6080485 | |
}, | |
{ | |
"year": 2010, | |
"population": 6483802 | |
} | |
] | |
}, | |
{ | |
"name": "Iowa", | |
"show": false, | |
"currentPopulation": 3046355, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2224771 | |
}, | |
{ | |
"year": 1920, | |
"population": 2404021 | |
}, | |
{ | |
"year": 1930, | |
"population": 2470939 | |
}, | |
{ | |
"year": 1940, | |
"population": 2538268 | |
}, | |
{ | |
"year": 1950, | |
"population": 2621073 | |
}, | |
{ | |
"year": 1960, | |
"population": 2757537 | |
}, | |
{ | |
"year": 1970, | |
"population": 2824376 | |
}, | |
{ | |
"year": 1980, | |
"population": 2913808 | |
}, | |
{ | |
"year": 1990, | |
"population": 2776755 | |
}, | |
{ | |
"year": 2000, | |
"population": 2926324 | |
}, | |
{ | |
"year": 2010, | |
"population": 3046355 | |
} | |
] | |
}, | |
{ | |
"name": "Kansas", | |
"show": false, | |
"currentPopulation": 2853118, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1690949 | |
}, | |
{ | |
"year": 1920, | |
"population": 1769257 | |
}, | |
{ | |
"year": 1930, | |
"population": 1880999 | |
}, | |
{ | |
"year": 1940, | |
"population": 1801028 | |
}, | |
{ | |
"year": 1950, | |
"population": 1905299 | |
}, | |
{ | |
"year": 1960, | |
"population": 2178611 | |
}, | |
{ | |
"year": 1970, | |
"population": 2246578 | |
}, | |
{ | |
"year": 1980, | |
"population": 2363679 | |
}, | |
{ | |
"year": 1990, | |
"population": 2477574 | |
}, | |
{ | |
"year": 2000, | |
"population": 2688418 | |
}, | |
{ | |
"year": 2010, | |
"population": 2853118 | |
} | |
] | |
}, | |
{ | |
"name": "Kentucky", | |
"show": false, | |
"currentPopulation": 4339367, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2289905 | |
}, | |
{ | |
"year": 1920, | |
"population": 2416630 | |
}, | |
{ | |
"year": 1930, | |
"population": 2614589 | |
}, | |
{ | |
"year": 1940, | |
"population": 2845627 | |
}, | |
{ | |
"year": 1950, | |
"population": 2944806 | |
}, | |
{ | |
"year": 1960, | |
"population": 3038156 | |
}, | |
{ | |
"year": 1970, | |
"population": 3218706 | |
}, | |
{ | |
"year": 1980, | |
"population": 3660777 | |
}, | |
{ | |
"year": 1990, | |
"population": 3685296 | |
}, | |
{ | |
"year": 2000, | |
"population": 4041769 | |
}, | |
{ | |
"year": 2010, | |
"population": 4339367 | |
} | |
] | |
}, | |
{ | |
"name": "Louisiana", | |
"show": false, | |
"currentPopulation": 4533372, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1656388 | |
}, | |
{ | |
"year": 1920, | |
"population": 1798509 | |
}, | |
{ | |
"year": 1930, | |
"population": 2101593 | |
}, | |
{ | |
"year": 1940, | |
"population": 2363880 | |
}, | |
{ | |
"year": 1950, | |
"population": 2683516 | |
}, | |
{ | |
"year": 1960, | |
"population": 3257022 | |
}, | |
{ | |
"year": 1970, | |
"population": 3641306 | |
}, | |
{ | |
"year": 1980, | |
"population": 4205900 | |
}, | |
{ | |
"year": 1990, | |
"population": 4219973 | |
}, | |
{ | |
"year": 2000, | |
"population": 4468976 | |
}, | |
{ | |
"year": 2010, | |
"population": 4533372 | |
} | |
] | |
}, | |
{ | |
"name": "Maine", | |
"show": false, | |
"currentPopulation": 1328361, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 742371 | |
}, | |
{ | |
"year": 1920, | |
"population": 768014 | |
}, | |
{ | |
"year": 1930, | |
"population": 797423 | |
}, | |
{ | |
"year": 1940, | |
"population": 847226 | |
}, | |
{ | |
"year": 1950, | |
"population": 913774 | |
}, | |
{ | |
"year": 1960, | |
"population": 969265 | |
}, | |
{ | |
"year": 1970, | |
"population": 992048 | |
}, | |
{ | |
"year": 1980, | |
"population": 1124660 | |
}, | |
{ | |
"year": 1990, | |
"population": 1227928 | |
}, | |
{ | |
"year": 2000, | |
"population": 1274923 | |
}, | |
{ | |
"year": 2010, | |
"population": 1328361 | |
} | |
] | |
}, | |
{ | |
"name": "Maryland", | |
"show": false, | |
"currentPopulation": 5773552, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1295346 | |
}, | |
{ | |
"year": 1920, | |
"population": 1449661 | |
}, | |
{ | |
"year": 1930, | |
"population": 1631526 | |
}, | |
{ | |
"year": 1940, | |
"population": 1821244 | |
}, | |
{ | |
"year": 1950, | |
"population": 2343001 | |
}, | |
{ | |
"year": 1960, | |
"population": 3100689 | |
}, | |
{ | |
"year": 1970, | |
"population": 3922399 | |
}, | |
{ | |
"year": 1980, | |
"population": 4216975 | |
}, | |
{ | |
"year": 1990, | |
"population": 4781468 | |
}, | |
{ | |
"year": 2000, | |
"population": 5296486 | |
}, | |
{ | |
"year": 2010, | |
"population": 5773552 | |
} | |
] | |
}, | |
{ | |
"name": "Massachusetts", | |
"show": false, | |
"currentPopulation": 6547629, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 3366416 | |
}, | |
{ | |
"year": 1920, | |
"population": 3852356 | |
}, | |
{ | |
"year": 1930, | |
"population": 4249614 | |
}, | |
{ | |
"year": 1940, | |
"population": 4316721 | |
}, | |
{ | |
"year": 1950, | |
"population": 4690514 | |
}, | |
{ | |
"year": 1960, | |
"population": 5148578 | |
}, | |
{ | |
"year": 1970, | |
"population": 5689170 | |
}, | |
{ | |
"year": 1980, | |
"population": 5737037 | |
}, | |
{ | |
"year": 1990, | |
"population": 6016425 | |
}, | |
{ | |
"year": 2000, | |
"population": 6349097 | |
}, | |
{ | |
"year": 2010, | |
"population": 6547629 | |
} | |
] | |
}, | |
{ | |
"name": "Michigan", | |
"show": true, | |
"currentPopulation": 9883640, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2810173 | |
}, | |
{ | |
"year": 1920, | |
"population": 3668412 | |
}, | |
{ | |
"year": 1930, | |
"population": 4842325 | |
}, | |
{ | |
"year": 1940, | |
"population": 5256106 | |
}, | |
{ | |
"year": 1950, | |
"population": 6371766 | |
}, | |
{ | |
"year": 1960, | |
"population": 7823194 | |
}, | |
{ | |
"year": 1970, | |
"population": 8875083 | |
}, | |
{ | |
"year": 1980, | |
"population": 9262078 | |
}, | |
{ | |
"year": 1990, | |
"population": 9295297 | |
}, | |
{ | |
"year": 2000, | |
"population": 9938444 | |
}, | |
{ | |
"year": 2010, | |
"population": 9883640 | |
} | |
] | |
}, | |
{ | |
"name": "Minnesota", | |
"show": false, | |
"currentPopulation": 5303925, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2075708 | |
}, | |
{ | |
"year": 1920, | |
"population": 2387125 | |
}, | |
{ | |
"year": 1930, | |
"population": 2563953 | |
}, | |
{ | |
"year": 1940, | |
"population": 2792300 | |
}, | |
{ | |
"year": 1950, | |
"population": 2982483 | |
}, | |
{ | |
"year": 1960, | |
"population": 3413864 | |
}, | |
{ | |
"year": 1970, | |
"population": 3804971 | |
}, | |
{ | |
"year": 1980, | |
"population": 4075970 | |
}, | |
{ | |
"year": 1990, | |
"population": 4375099 | |
}, | |
{ | |
"year": 2000, | |
"population": 4919479 | |
}, | |
{ | |
"year": 2010, | |
"population": 5303925 | |
} | |
] | |
}, | |
{ | |
"name": "Mississippi", | |
"show": false, | |
"currentPopulation": 2967297, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1797114 | |
}, | |
{ | |
"year": 1920, | |
"population": 1790618 | |
}, | |
{ | |
"year": 1930, | |
"population": 2009821 | |
}, | |
{ | |
"year": 1940, | |
"population": 2183796 | |
}, | |
{ | |
"year": 1950, | |
"population": 2178914 | |
}, | |
{ | |
"year": 1960, | |
"population": 2178141 | |
}, | |
{ | |
"year": 1970, | |
"population": 2216912 | |
}, | |
{ | |
"year": 1980, | |
"population": 2520638 | |
}, | |
{ | |
"year": 1990, | |
"population": 2573216 | |
}, | |
{ | |
"year": 2000, | |
"population": 2844658 | |
}, | |
{ | |
"year": 2010, | |
"population": 2967297 | |
} | |
] | |
}, | |
{ | |
"name": "Missouri", | |
"show": false, | |
"currentPopulation": 5988927, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 3293335 | |
}, | |
{ | |
"year": 1920, | |
"population": 3404055 | |
}, | |
{ | |
"year": 1930, | |
"population": 3629367 | |
}, | |
{ | |
"year": 1940, | |
"population": 3784664 | |
}, | |
{ | |
"year": 1950, | |
"population": 3954653 | |
}, | |
{ | |
"year": 1960, | |
"population": 4319813 | |
}, | |
{ | |
"year": 1970, | |
"population": 4676501 | |
}, | |
{ | |
"year": 1980, | |
"population": 4916686 | |
}, | |
{ | |
"year": 1990, | |
"population": 5117073 | |
}, | |
{ | |
"year": 2000, | |
"population": 5595211 | |
}, | |
{ | |
"year": 2010, | |
"population": 5988927 | |
} | |
] | |
}, | |
{ | |
"name": "Montana", | |
"show": false, | |
"currentPopulation": 989415, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 376053 | |
}, | |
{ | |
"year": 1920, | |
"population": 548889 | |
}, | |
{ | |
"year": 1930, | |
"population": 537606 | |
}, | |
{ | |
"year": 1940, | |
"population": 559456 | |
}, | |
{ | |
"year": 1950, | |
"population": 591024 | |
}, | |
{ | |
"year": 1960, | |
"population": 674767 | |
}, | |
{ | |
"year": 1970, | |
"population": 694409 | |
}, | |
{ | |
"year": 1980, | |
"population": 786690 | |
}, | |
{ | |
"year": 1990, | |
"population": 799065 | |
}, | |
{ | |
"year": 2000, | |
"population": 902195 | |
}, | |
{ | |
"year": 2010, | |
"population": 989415 | |
} | |
] | |
}, | |
{ | |
"name": "Nebraska", | |
"show": false, | |
"currentPopulation": 1826341, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1192214 | |
}, | |
{ | |
"year": 1920, | |
"population": 1296372 | |
}, | |
{ | |
"year": 1930, | |
"population": 1377963 | |
}, | |
{ | |
"year": 1940, | |
"population": 1315834 | |
}, | |
{ | |
"year": 1950, | |
"population": 1325510 | |
}, | |
{ | |
"year": 1960, | |
"population": 1411330 | |
}, | |
{ | |
"year": 1970, | |
"population": 1483493 | |
}, | |
{ | |
"year": 1980, | |
"population": 1569825 | |
}, | |
{ | |
"year": 1990, | |
"population": 1578385 | |
}, | |
{ | |
"year": 2000, | |
"population": 1711263 | |
}, | |
{ | |
"year": 2010, | |
"population": 1826341 | |
} | |
] | |
}, | |
{ | |
"name": "Nevada", | |
"show": false, | |
"currentPopulation": 2700551, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 81875 | |
}, | |
{ | |
"year": 1920, | |
"population": 77407 | |
}, | |
{ | |
"year": 1930, | |
"population": 91058 | |
}, | |
{ | |
"year": 1940, | |
"population": 110247 | |
}, | |
{ | |
"year": 1950, | |
"population": 160083 | |
}, | |
{ | |
"year": 1960, | |
"population": 285278 | |
}, | |
{ | |
"year": 1970, | |
"population": 488738 | |
}, | |
{ | |
"year": 1980, | |
"population": 800493 | |
}, | |
{ | |
"year": 1990, | |
"population": 1201833 | |
}, | |
{ | |
"year": 2000, | |
"population": 1998257 | |
}, | |
{ | |
"year": 2010, | |
"population": 2700551 | |
} | |
] | |
}, | |
{ | |
"name": "New Hampshire", | |
"show": false, | |
"currentPopulation": 1316470, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 430572 | |
}, | |
{ | |
"year": 1920, | |
"population": 443083 | |
}, | |
{ | |
"year": 1930, | |
"population": 465293 | |
}, | |
{ | |
"year": 1940, | |
"population": 491524 | |
}, | |
{ | |
"year": 1950, | |
"population": 533242 | |
}, | |
{ | |
"year": 1960, | |
"population": 606921 | |
}, | |
{ | |
"year": 1970, | |
"population": 737681 | |
}, | |
{ | |
"year": 1980, | |
"population": 920610 | |
}, | |
{ | |
"year": 1990, | |
"population": 1109252 | |
}, | |
{ | |
"year": 2000, | |
"population": 1235786 | |
}, | |
{ | |
"year": 2010, | |
"population": 1316470 | |
} | |
] | |
}, | |
{ | |
"name": "New Jersey", | |
"show": false, | |
"currentPopulation": 8791894, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2537167 | |
}, | |
{ | |
"year": 1920, | |
"population": 3155900 | |
}, | |
{ | |
"year": 1930, | |
"population": 4041334 | |
}, | |
{ | |
"year": 1940, | |
"population": 4160165 | |
}, | |
{ | |
"year": 1950, | |
"population": 4835329 | |
}, | |
{ | |
"year": 1960, | |
"population": 6066782 | |
}, | |
{ | |
"year": 1970, | |
"population": 7168164 | |
}, | |
{ | |
"year": 1980, | |
"population": 7364823 | |
}, | |
{ | |
"year": 1990, | |
"population": 7730188 | |
}, | |
{ | |
"year": 2000, | |
"population": 8414350 | |
}, | |
{ | |
"year": 2010, | |
"population": 8791894 | |
} | |
] | |
}, | |
{ | |
"name": "New Mexico", | |
"show": true, | |
"currentPopulation": 2059179, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 327301 | |
}, | |
{ | |
"year": 1920, | |
"population": 360350 | |
}, | |
{ | |
"year": 1930, | |
"population": 423317 | |
}, | |
{ | |
"year": 1940, | |
"population": 531818 | |
}, | |
{ | |
"year": 1950, | |
"population": 681187 | |
}, | |
{ | |
"year": 1960, | |
"population": 951023 | |
}, | |
{ | |
"year": 1970, | |
"population": 1016000 | |
}, | |
{ | |
"year": 1980, | |
"population": 1302894 | |
}, | |
{ | |
"year": 1990, | |
"population": 1515069 | |
}, | |
{ | |
"year": 2000, | |
"population": 1819046 | |
}, | |
{ | |
"year": 2010, | |
"population": 2059179 | |
} | |
] | |
}, | |
{ | |
"name": "New York", | |
"show": false, | |
"currentPopulation": 19378102, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 9113614 | |
}, | |
{ | |
"year": 1920, | |
"population": 10385227 | |
}, | |
{ | |
"year": 1930, | |
"population": 12588066 | |
}, | |
{ | |
"year": 1940, | |
"population": 13479142 | |
}, | |
{ | |
"year": 1950, | |
"population": 14830192 | |
}, | |
{ | |
"year": 1960, | |
"population": 16782304 | |
}, | |
{ | |
"year": 1970, | |
"population": 18236967 | |
}, | |
{ | |
"year": 1980, | |
"population": 17558072 | |
}, | |
{ | |
"year": 1990, | |
"population": 17990455 | |
}, | |
{ | |
"year": 2000, | |
"population": 18976457 | |
}, | |
{ | |
"year": 2010, | |
"population": 19378102 | |
} | |
] | |
}, | |
{ | |
"name": "North Carolina", | |
"show": false, | |
"currentPopulation": 9535483, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2206287 | |
}, | |
{ | |
"year": 1920, | |
"population": 2559123 | |
}, | |
{ | |
"year": 1930, | |
"population": 3170276 | |
}, | |
{ | |
"year": 1940, | |
"population": 3571623 | |
}, | |
{ | |
"year": 1950, | |
"population": 4061929 | |
}, | |
{ | |
"year": 1960, | |
"population": 4556155 | |
}, | |
{ | |
"year": 1970, | |
"population": 5082059 | |
}, | |
{ | |
"year": 1980, | |
"population": 5881766 | |
}, | |
{ | |
"year": 1990, | |
"population": 6628637 | |
}, | |
{ | |
"year": 2000, | |
"population": 8049313 | |
}, | |
{ | |
"year": 2010, | |
"population": 9535483 | |
} | |
] | |
}, | |
{ | |
"name": "North Dakota", | |
"show": false, | |
"currentPopulation": 672591, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 577056 | |
}, | |
{ | |
"year": 1920, | |
"population": 646872 | |
}, | |
{ | |
"year": 1930, | |
"population": 680845 | |
}, | |
{ | |
"year": 1940, | |
"population": 641935 | |
}, | |
{ | |
"year": 1950, | |
"population": 619636 | |
}, | |
{ | |
"year": 1960, | |
"population": 632446 | |
}, | |
{ | |
"year": 1970, | |
"population": 617761 | |
}, | |
{ | |
"year": 1980, | |
"population": 652717 | |
}, | |
{ | |
"year": 1990, | |
"population": 638800 | |
}, | |
{ | |
"year": 2000, | |
"population": 642200 | |
}, | |
{ | |
"year": 2010, | |
"population": 672591 | |
} | |
] | |
}, | |
{ | |
"name": "Ohio", | |
"show": true, | |
"currentPopulation": 11536504, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 4767121 | |
}, | |
{ | |
"year": 1920, | |
"population": 5759394 | |
}, | |
{ | |
"year": 1930, | |
"population": 6646697 | |
}, | |
{ | |
"year": 1940, | |
"population": 6907612 | |
}, | |
{ | |
"year": 1950, | |
"population": 7946627 | |
}, | |
{ | |
"year": 1960, | |
"population": 9706397 | |
}, | |
{ | |
"year": 1970, | |
"population": 10652017 | |
}, | |
{ | |
"year": 1980, | |
"population": 10797630 | |
}, | |
{ | |
"year": 1990, | |
"population": 10847115 | |
}, | |
{ | |
"year": 2000, | |
"population": 11353140 | |
}, | |
{ | |
"year": 2010, | |
"population": 11536504 | |
} | |
] | |
}, | |
{ | |
"name": "Oklahoma", | |
"show": false, | |
"currentPopulation": 3751351, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1657155 | |
}, | |
{ | |
"year": 1920, | |
"population": 2028283 | |
}, | |
{ | |
"year": 1930, | |
"population": 2396040 | |
}, | |
{ | |
"year": 1940, | |
"population": 2336434 | |
}, | |
{ | |
"year": 1950, | |
"population": 2233351 | |
}, | |
{ | |
"year": 1960, | |
"population": 2328284 | |
}, | |
{ | |
"year": 1970, | |
"population": 2559229 | |
}, | |
{ | |
"year": 1980, | |
"population": 3025290 | |
}, | |
{ | |
"year": 1990, | |
"population": 3145585 | |
}, | |
{ | |
"year": 2000, | |
"population": 3450654 | |
}, | |
{ | |
"year": 2010, | |
"population": 3751351 | |
} | |
] | |
}, | |
{ | |
"name": "Oregon", | |
"show": false, | |
"currentPopulation": 3831074, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 672765 | |
}, | |
{ | |
"year": 1920, | |
"population": 783389 | |
}, | |
{ | |
"year": 1930, | |
"population": 953786 | |
}, | |
{ | |
"year": 1940, | |
"population": 1089684 | |
}, | |
{ | |
"year": 1950, | |
"population": 1521341 | |
}, | |
{ | |
"year": 1960, | |
"population": 1768687 | |
}, | |
{ | |
"year": 1970, | |
"population": 2091385 | |
}, | |
{ | |
"year": 1980, | |
"population": 2633105 | |
}, | |
{ | |
"year": 1990, | |
"population": 2842321 | |
}, | |
{ | |
"year": 2000, | |
"population": 3421399 | |
}, | |
{ | |
"year": 2010, | |
"population": 3831074 | |
} | |
] | |
}, | |
{ | |
"name": "Pennsylvania", | |
"show": false, | |
"currentPopulation": 12702379, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 7665111 | |
}, | |
{ | |
"year": 1920, | |
"population": 8720017 | |
}, | |
{ | |
"year": 1930, | |
"population": 9631350 | |
}, | |
{ | |
"year": 1940, | |
"population": 9900180 | |
}, | |
{ | |
"year": 1950, | |
"population": 10498012 | |
}, | |
{ | |
"year": 1960, | |
"population": 11319366 | |
}, | |
{ | |
"year": 1970, | |
"population": 11793909 | |
}, | |
{ | |
"year": 1980, | |
"population": 11863895 | |
}, | |
{ | |
"year": 1990, | |
"population": 11881643 | |
}, | |
{ | |
"year": 2000, | |
"population": 12281054 | |
}, | |
{ | |
"year": 2010, | |
"population": 12702379 | |
} | |
] | |
}, | |
{ | |
"name": "Rhode Island", | |
"show": true, | |
"currentPopulation": 1052567, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 542610 | |
}, | |
{ | |
"year": 1920, | |
"population": 604397 | |
}, | |
{ | |
"year": 1930, | |
"population": 687497 | |
}, | |
{ | |
"year": 1940, | |
"population": 713346 | |
}, | |
{ | |
"year": 1950, | |
"population": 791896 | |
}, | |
{ | |
"year": 1960, | |
"population": 859488 | |
}, | |
{ | |
"year": 1970, | |
"population": 946725 | |
}, | |
{ | |
"year": 1980, | |
"population": 947154 | |
}, | |
{ | |
"year": 1990, | |
"population": 1003464 | |
}, | |
{ | |
"year": 2000, | |
"population": 1048319 | |
}, | |
{ | |
"year": 2010, | |
"population": 1052567 | |
} | |
] | |
}, | |
{ | |
"name": "South Carolina", | |
"show": false, | |
"currentPopulation": 4625364, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1515400 | |
}, | |
{ | |
"year": 1920, | |
"population": 1683724 | |
}, | |
{ | |
"year": 1930, | |
"population": 1738765 | |
}, | |
{ | |
"year": 1940, | |
"population": 1899804 | |
}, | |
{ | |
"year": 1950, | |
"population": 2117027 | |
}, | |
{ | |
"year": 1960, | |
"population": 2382594 | |
}, | |
{ | |
"year": 1970, | |
"population": 2590516 | |
}, | |
{ | |
"year": 1980, | |
"population": 3121820 | |
}, | |
{ | |
"year": 1990, | |
"population": 3486703 | |
}, | |
{ | |
"year": 2000, | |
"population": 4012012 | |
}, | |
{ | |
"year": 2010, | |
"population": 4625364 | |
} | |
] | |
}, | |
{ | |
"name": "South Dakota", | |
"show": false, | |
"currentPopulation": 814180, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 583888 | |
}, | |
{ | |
"year": 1920, | |
"population": 636547 | |
}, | |
{ | |
"year": 1930, | |
"population": 692849 | |
}, | |
{ | |
"year": 1940, | |
"population": 642961 | |
}, | |
{ | |
"year": 1950, | |
"population": 652740 | |
}, | |
{ | |
"year": 1960, | |
"population": 680514 | |
}, | |
{ | |
"year": 1970, | |
"population": 665507 | |
}, | |
{ | |
"year": 1980, | |
"population": 690768 | |
}, | |
{ | |
"year": 1990, | |
"population": 696004 | |
}, | |
{ | |
"year": 2000, | |
"population": 754844 | |
}, | |
{ | |
"year": 2010, | |
"population": 814180 | |
} | |
] | |
}, | |
{ | |
"name": "Tennessee", | |
"show": false, | |
"currentPopulation": 6346105, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2184789 | |
}, | |
{ | |
"year": 1920, | |
"population": 2337885 | |
}, | |
{ | |
"year": 1930, | |
"population": 2616556 | |
}, | |
{ | |
"year": 1940, | |
"population": 2915841 | |
}, | |
{ | |
"year": 1950, | |
"population": 3291718 | |
}, | |
{ | |
"year": 1960, | |
"population": 3567089 | |
}, | |
{ | |
"year": 1970, | |
"population": 3923687 | |
}, | |
{ | |
"year": 1980, | |
"population": 4591120 | |
}, | |
{ | |
"year": 1990, | |
"population": 4877185 | |
}, | |
{ | |
"year": 2000, | |
"population": 5689283 | |
}, | |
{ | |
"year": 2010, | |
"population": 6346105 | |
} | |
] | |
}, | |
{ | |
"name": "Texas", | |
"show": true, | |
"currentPopulation": 25145561, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 3896542 | |
}, | |
{ | |
"year": 1920, | |
"population": 4663228 | |
}, | |
{ | |
"year": 1930, | |
"population": 5824715 | |
}, | |
{ | |
"year": 1940, | |
"population": 6414824 | |
}, | |
{ | |
"year": 1950, | |
"population": 7711194 | |
}, | |
{ | |
"year": 1960, | |
"population": 9579677 | |
}, | |
{ | |
"year": 1970, | |
"population": 11196730 | |
}, | |
{ | |
"year": 1980, | |
"population": 14229191 | |
}, | |
{ | |
"year": 1990, | |
"population": 16986510 | |
}, | |
{ | |
"year": 2000, | |
"population": 20851820 | |
}, | |
{ | |
"year": 2010, | |
"population": 25145561 | |
} | |
] | |
}, | |
{ | |
"name": "Utah", | |
"show": false, | |
"currentPopulation": 2763885, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 373351 | |
}, | |
{ | |
"year": 1920, | |
"population": 449396 | |
}, | |
{ | |
"year": 1930, | |
"population": 507847 | |
}, | |
{ | |
"year": 1940, | |
"population": 550310 | |
}, | |
{ | |
"year": 1950, | |
"population": 688862 | |
}, | |
{ | |
"year": 1960, | |
"population": 890627 | |
}, | |
{ | |
"year": 1970, | |
"population": 1059273 | |
}, | |
{ | |
"year": 1980, | |
"population": 1461037 | |
}, | |
{ | |
"year": 1990, | |
"population": 1722850 | |
}, | |
{ | |
"year": 2000, | |
"population": 2233169 | |
}, | |
{ | |
"year": 2010, | |
"population": 2763885 | |
} | |
] | |
}, | |
{ | |
"name": "Vermont", | |
"show": true, | |
"currentPopulation": 625741, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 355956 | |
}, | |
{ | |
"year": 1920, | |
"population": 352428 | |
}, | |
{ | |
"year": 1930, | |
"population": 359611 | |
}, | |
{ | |
"year": 1940, | |
"population": 359231 | |
}, | |
{ | |
"year": 1950, | |
"population": 377747 | |
}, | |
{ | |
"year": 1960, | |
"population": 389881 | |
}, | |
{ | |
"year": 1970, | |
"population": 444330 | |
}, | |
{ | |
"year": 1980, | |
"population": 511456 | |
}, | |
{ | |
"year": 1990, | |
"population": 562758 | |
}, | |
{ | |
"year": 2000, | |
"population": 608827 | |
}, | |
{ | |
"year": 2010, | |
"population": 625741 | |
} | |
] | |
}, | |
{ | |
"name": "Virginia", | |
"show": false, | |
"currentPopulation": 8001024, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2061612 | |
}, | |
{ | |
"year": 1920, | |
"population": 2309187 | |
}, | |
{ | |
"year": 1930, | |
"population": 2421851 | |
}, | |
{ | |
"year": 1940, | |
"population": 2677773 | |
}, | |
{ | |
"year": 1950, | |
"population": 3318680 | |
}, | |
{ | |
"year": 1960, | |
"population": 3966949 | |
}, | |
{ | |
"year": 1970, | |
"population": 4648494 | |
}, | |
{ | |
"year": 1980, | |
"population": 5346818 | |
}, | |
{ | |
"year": 1990, | |
"population": 6187358 | |
}, | |
{ | |
"year": 2000, | |
"population": 7078515 | |
}, | |
{ | |
"year": 2010, | |
"population": 8001024 | |
} | |
] | |
}, | |
{ | |
"name": "Washington", | |
"show": false, | |
"currentPopulation": 6724540, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1141990 | |
}, | |
{ | |
"year": 1920, | |
"population": 1356621 | |
}, | |
{ | |
"year": 1930, | |
"population": 1563396 | |
}, | |
{ | |
"year": 1940, | |
"population": 1736191 | |
}, | |
{ | |
"year": 1950, | |
"population": 2378963 | |
}, | |
{ | |
"year": 1960, | |
"population": 2853214 | |
}, | |
{ | |
"year": 1970, | |
"population": 3409169 | |
}, | |
{ | |
"year": 1980, | |
"population": 4132156 | |
}, | |
{ | |
"year": 1990, | |
"population": 4866692 | |
}, | |
{ | |
"year": 2000, | |
"population": 5894121 | |
}, | |
{ | |
"year": 2010, | |
"population": 6724540 | |
} | |
] | |
}, | |
{ | |
"name": "West Virginia", | |
"show": false, | |
"currentPopulation": 1852994, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 1221119 | |
}, | |
{ | |
"year": 1920, | |
"population": 1463701 | |
}, | |
{ | |
"year": 1930, | |
"population": 1729205 | |
}, | |
{ | |
"year": 1940, | |
"population": 1901974 | |
}, | |
{ | |
"year": 1950, | |
"population": 2005552 | |
}, | |
{ | |
"year": 1960, | |
"population": 1860421 | |
}, | |
{ | |
"year": 1970, | |
"population": 1744237 | |
}, | |
{ | |
"year": 1980, | |
"population": 1949644 | |
}, | |
{ | |
"year": 1990, | |
"population": 1793477 | |
}, | |
{ | |
"year": 2000, | |
"population": 1808344 | |
}, | |
{ | |
"year": 2010, | |
"population": 1852994 | |
} | |
] | |
}, | |
{ | |
"name": "Wisconsin", | |
"show": false, | |
"currentPopulation": 5686986, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 2333860 | |
}, | |
{ | |
"year": 1920, | |
"population": 2632067 | |
}, | |
{ | |
"year": 1930, | |
"population": 2939006 | |
}, | |
{ | |
"year": 1940, | |
"population": 3137587 | |
}, | |
{ | |
"year": 1950, | |
"population": 3434575 | |
}, | |
{ | |
"year": 1960, | |
"population": 3951777 | |
}, | |
{ | |
"year": 1970, | |
"population": 4417731 | |
}, | |
{ | |
"year": 1980, | |
"population": 4705767 | |
}, | |
{ | |
"year": 1990, | |
"population": 4891769 | |
}, | |
{ | |
"year": 2000, | |
"population": 5363675 | |
}, | |
{ | |
"year": 2010, | |
"population": 5686986 | |
} | |
] | |
}, | |
{ | |
"name": "Wyoming", | |
"show": false, | |
"currentPopulation": 563626, | |
"history": [ | |
{ | |
"year": 1910, | |
"population": 145965 | |
}, | |
{ | |
"year": 1920, | |
"population": 194402 | |
}, | |
{ | |
"year": 1930, | |
"population": 225565 | |
}, | |
{ | |
"year": 1940, | |
"population": 250742 | |
}, | |
{ | |
"year": 1950, | |
"population": 290529 | |
}, | |
{ | |
"year": 1960, | |
"population": 330066 | |
}, | |
{ | |
"year": 1970, | |
"population": 332416 | |
}, | |
{ | |
"year": 1980, | |
"population": 469557 | |
}, | |
{ | |
"year": 1990, | |
"population": 453588 | |
}, | |
{ | |
"year": 2000, | |
"population": 493782 | |
}, | |
{ | |
"year": 2010, | |
"population": 563626 | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment