D3 module on Drupal doesn't show examples

巧了我就是萌 提交于 2019-12-11 16:22:59

问题


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

it looks like D3 library is not loaded... I googled a lot but failed to find any hint. What am I missing here?


回答1:


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.

Make sure the file name must be remain same as d3.js.

For more details: click here

I hope that would help you out.



来源:https://stackoverflow.com/questions/49580958/d3-module-on-drupal-doesnt-show-examples

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!