Drupal 上的 D3 模块不显示示例
D3 module on Drupal doesn't show examples
我已经在 Drupal 7.x 上安装了 D3.js 模块,启用了 D3 视图和 D3 示例模块,上传 d3.js 到 sites/all/libraries/d3 但是当我尝试访问例如 /d3/examples/bar,我得到错误:
Uncaught TypeError: Cannot read property 'linear' of undefined
看起来 D3 库没有加载...我用谷歌搜索了很多但没有找到任何提示。我在这里错过了什么?
如果您使用 D3 module then you need to download https://d3js.org/d3.v3.js 的 7.x-1.0-alpha3
版本,请替换为 sites/all/libraries/d3/d3.js
。它对我有用,如屏幕截图所示。
确保文件名必须与d3.js
相同。
更多详情:
希望对您有所帮助。
我已经在 Drupal 7.x 上安装了 D3.js 模块,启用了 D3 视图和 D3 示例模块,上传 d3.js 到 sites/all/libraries/d3 但是当我尝试访问例如 /d3/examples/bar,我得到错误:
Uncaught TypeError: Cannot read property 'linear' of undefined
看起来 D3 库没有加载...我用谷歌搜索了很多但没有找到任何提示。我在这里错过了什么?
如果您使用 D3 module then you need to download https://d3js.org/d3.v3.js 的 7.x-1.0-alpha3
版本,请替换为 sites/all/libraries/d3/d3.js
。它对我有用,如屏幕截图所示。
确保文件名必须与d3.js
相同。
更多详情:
希望对您有所帮助。