从我应用 d3.csv 时阅读文档到
age,population
<5,2704659
5-13,4499890
14-17,2159981
18-24,3853788
25-44,14106543
45-64,8819342
≥65,612463
我相信我应该得到
data =
[
{"age": "<5", "population": "2704659"},
{"age": "5-13", "population": "4499890"},
{"age": "14-17", "population": "2159981"},
{"age": "18-24", "population": "3853788"},
{"age": "25-44", "population": "14106543"},
{"age": "45-64", "population": "8819342"},
{"age": "≥65", "population": "612463"},
]
但是,当我在此示例中替换 d3.csv 时:http://bl.ocks.org/3887235与上面的代码示例,什么都没有出现。
变化很小,看起来很合理,但是我不知道为什么这是空白的。
这是我的意思的演示:http: //jsfiddle.net/dME8a/