问答详情
源自:4-4 添加字母刻度的坐标轴

前一节还能正常显示,这一节做到10:30左右就显示错误了

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)"


提问者:一知半解求学者 2016-01-08 11:24

个回答

  • 一知半解求学者
    2016-01-08 11:34:44

    已经解决了,.domain(data.map(function(d){return d.year;})),domain这应该是d.year,不是d.population