一知半解求学者
2016-01-08 11:24
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
使用D3制作图表
37890 学习 · 112 问题
相似问题