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 !
( 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!