There seems to be a mix-up between dc.js and d3.js in your understanding.
dc.js is actually a charting library that is built on top of d3.js and crossfilter. While d3.js is a robust but more fundamental graphics library, crossfilter serves as a quick and uncomplicated client-side database.
In order to successfully operate dc.js, you will require:
- d3.js
- crossfilter.js
- dc.js
- dc.css
The majority of users do not visit the GitHub repository; that space is predominantly for developers.
Similar to many other JavaScript libraries, most users will craft a package.json
for npm. Depending on dc
and then executing npm install
will automatically include D3 and crossfilter (specifically, crossfilter2, which is a community variation with enhancements).
Alternatively, you could directly bring in all the aforementioned resources from CDNs into your webpage, bypassing the need for npm altogether. Detailed instructions can be found in the README.
The choice ultimately hinges on how you intend to deploy your application.