Error: Invalid value for <g> attribute transform="translate(undefined,0)"d3.v3.js:669 attrFunctiond3.v3.js:961 (anonymous function)d3.v3.js:967 d3_selection_eachd3.v3.js:960 d3_selectionPrototype.eachd3.v3.js:651 d3_selectionPrototype.attrindex.js:33 (anonymous function)d3.v3.js:2010 (anonymous function)d3.v3.js:1995 (anonymous function)d3.v3.js:504 eventd3.v3.js:1948 respond
18postload.js:46 Error: Invalid value for <g> attribute transform="translate(undefined,0)"
12postload.js:45 Error: Invalid value for <g> attribute transform="translate(undefined,0)"
已经解决了,.domain(data.map(function(d){return d.year;})),domain这应该是d.year,不是d.population