benkeen / d3pie

A configurable pie chart lib and generator built on d3.js
MIT License
370 stars 203 forks source link

Loading d3pie with requirejs #140

Open sposerina opened 6 years ago

sposerina commented 6 years ago

I wanted to load d3pie as an AMD module but it appears that the script is expecting the d3 variable in the global namspace. As a workaround, I manually loaded the d3 library from a script tag but this defeats the purpose of using requirejs.