问题
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