I am having difficulty declaring the cubism's dependency on d3, when using require.js.
Config is as:
requirejs.config({
baseUrl: './',
paths: {
'jquery': './jquery-1.10.2.min',
'd3': './d3.min',
'cubism': './cubism.v1'
},
shim: {
cubism: {
deps: ['d3']
}
}
});
The error I am getting is:
cubism.v1.js:187 Uncaught ReferenceError: d3 is not defined
at cubism.v1.js:187
at cubism.v1.js:1331
Please help find me where I did wrong?