Building on code originally used for this blog post, this example shows an integrated and animated map + timeseries graph. It uses the Nordpil world cities dataset (based on data from the UN Population Division), and shows the growth in metropolitan area popluations from 1950 to 2005. The data is filtered to show only metro areas with 2005 populations greater than 2.5 million, and note that the scale is such that the Tokyo metro area is allowed to grow off the chart in order to keep a linear scale with reasonable resolution.
Click on a dot on the map to view its history. Click on the animation button or move the date slider to view the temporal changes on the map.
https://d3js.org/d3.v3.min.js
https://d3js.org/topojson.v1.min.js