Drupal上的D3模块未显示示例 [英] D3 module on Drupal doesn't show examples
问题描述
我在Drupal 7.x上安装了D3.js模块,启用了D3视图和D3示例的模块,将d3.js上传到site/all/libraries/d3中,但是当我尝试访问示例时,例如/d3/examples/bar,出现错误:
I have installed D3.js module on Drupal 7.x, enabled the module the D3 views and D3 examples, uploaded d3.js into sites/all/libraries/d3 but when I try to access the examples, like /d3/examples/bar, I get the error:
Uncaught TypeError: Cannot read property 'linear' of undefined
似乎未加载D3库...我用Google搜索了很多,但是找不到任何提示.我在这里想念什么?
it looks like D3 library is not loaded... I googled a lot but failed to find any hint. What am I missing here?
推荐答案
如果使用的是sites/all/libraries/d3/d3.js
.如截图所示,它对我有用.
If you are using the version 7.x-1.0-alpha3
of D3 module then you need to download https://d3js.org/d3.v3.js and replace with sites/all/libraries/d3/d3.js
. It works for me as in the screenshot.
确保文件名必须与d3.js
相同.
Make sure the file name must be remain same as d3.js
.
有关更多详细信息:单击此处
我希望能对您有所帮助.
I hope that would help you out.
这篇关于Drupal上的D3模块未显示示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!