Search code examples
d3.jsangularnvd3.jssystemjsng2-nvd3

Adding nvd to map in systemjs


I have an angular2 application where i wish to use rickshaw. This requires the following: d3, nvd3 and ng2-nvd3. I have these in my lib folder:

enter image description here

And my systemjs.config.js map looks as follows:

enter image description here

However, when run this i get an error: enter image description here

telling me it has not been implemented. Can someone please tell me what i´m missing?

Thanks in advance.


Solution

  • adding

    lib/ng2-nvd3/node_modules/d3/d3.js
    lib/nvd3/build/nv.d3.js
    

    to the index.html solved my problem. I´m however not sure this is the right way to do this.