我的代码: function d3_chart() { // instantiate d3plus .container("#viz") // container DIV to hold the visualization
.data("./extra/acc.csv", {"filetype": "csv"}) // data to use with
我做了一个使用正投影的地图,我试图提高性能,因为旋转不是平滑的(大约6-7FPS)。加载之后,我有一个使用d3.timer启动的自动旋转功能: @start_time = Date.now() # Store the current time (used by automatic rotation)
dt = Date.now() - @
到目前为止,我可以构建json并使用呈现数组将其传递给我的js脚本(并在控制台中显示它),但随后我无法调用D3.js:
Uncaught ReferenceError: d3 is not defined或者,既然D3.js在site/all/libraries/d3中,那么有一种通用的方式来调用它吗?