Categories

See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

NVD3 charts using Node js

General Tech Bugs & Fixes

Max. 2000 characters
Replies

usr_profile.png

User

( 6 months ago )

I have created simple discrete BAR CHART using nvd3.js charting library. And am succeeded in running it through my browser(discretebarchart.html from NVD3 chart examples).Now I am trying to construct the same discrete bar chart with NODE.js. But i am unable to load the nvd3 library source modules in my nodejs server, since it isn't in NPM.

Can any one clarify me how to load NVD3 modules and generate NVD3 charts using Node js? There is no packages for NVD3 module in Node js. As Node js having packages for D3.js

d3 = npm install d3;

Your help regarding NVD3 and Node js would be great !

usr_profile.png

User

( 6 months ago )

You have to download nv.d3.js and then include it in your project. You didn't say how you are serving pages with Node.js. If you are serving separate html files, you could include it in the relevant file with a typical script tag. This question suggests other node-like ways of pulling plain js files into a node project.

However, nvd3 appears to depend on the window object, which is where I'm currently stuck. Best of luck!

what's your interest


forum_ban8_5d8c5fd7cf6f7.gif