krispo / ng2-nvd3

Angular2 component for nvd3
http://krispo.github.io/ng2-nvd3/
MIT License
328 stars 104 forks source link

Problem with including this #38

Open DianaHorghidan opened 8 years ago

DianaHorghidan commented 8 years ago

I get 'cannot get module ng2-nvd3/ng2-nvd3'. I installed the module, I can see it in node-modules, but I can't import it. Please help!

zertyz commented 8 years ago

Hi, Diana. Can you please provide details?

DianaHorghidan commented 8 years ago

Hi! I installed d3 and nvd3 and also ng2-nvd3 module. It is in node_modules, but I can't get it in dist folder. I added changes in system file and also in angular-cli. I got your example, but I get the error above...and I really need this charts, because you have the option to show labels outsite doughnuts.

Thank you!Have a great day!

zertyz commented 8 years ago

I'm not the author -- just someone trying to use it, like you :)

But I believe I can help.

You said about the dependencies not showing on dist folder... I believe it also doesn't run when you execute "npm start". Does it?

Which development stack are you using?

I managed to make it work on the official Angular2 stack (angular.io quickstart) -- you may see the needed steps/changes on commit 91292ab of project https://github.com/zertyz/angular2-tour-of-heroes-part6-spikes

My next integration will be with the angular2-seed-advanced stack.

devrockzz commented 8 years ago

I am also facing the same problem ...... Did you got any idea mam @DianaHorghidan ? is yes can you send me the system.config and angular-cli-build.js setup ....

DianaHorghidan commented 8 years ago

Hi! I didn't managed to use that. I used chartjs...imported the component and extended as needed....even I still have some issues on displaying data outside the doughnut chart.If somebody can give a hand with this will be great.