我在我的项目中集成了一些 d3js 库,在这一步中,我想绘制一个多区域图,显示时间函数中 5(x,y,z,r,e) 点的值(0 到 100% 之间)像这样:http ://tympanus.net/Tutorials/MultipleAreaChartsD3/ ...在我的例子中,输入是一个数组
var data =
[{"Year":"2011","x":"63.4","y":"62.7","z":"12.2","t":"44.2","e":"22.2"},
{"Year":"2012","x":"75.4","y":"32.7","z":"78.2","t":"82.2","e":"92.2"},
{"Year":"2013","x":"773.4","y":"20.7","z":"92.2","t":"75.4","e":"52.2"}];
正如我的代码中定义的那样:http: //jsfiddle.net/amani1988/cfk8Y/我刚刚编辑了一些原始代码行但是在显示 y,z,r,e 值时也出现了问题 css 问题..问题是如何从数组形式正确读取数据?