dc.js is a javascript library for creating data visualization on browser. To create specific charts the corresponding methods are called. It internally uses croassfilter.js and d3.js and its own style sheet.

Set-up

The dc.js library is set up in a html file. Before including dc.js in html, d3.js, crossfilter.js have to be included in it. Then dc.js javascript code and its styles need to be included as shown below,

<!DOCTYPE html>
<html>
 <head>
   <title>dc.js setup</title>
   <script src="https://d3js.org/d3.v3.js"></script>
   <script src="https://unpkg.com/crossfilter2@1.4.6/crossfilter.js"></script>
   <script src="http://unpkg.com/dc@3/dc.js"></script>
   <link rel="stylesheet" type="text/css" href="http://unpkg.com/dc@3/dc.css"/>
 </head>
 <body>
 </body>
</html>

More information


Contributing to the Guide

This open source guide is curated by thousands of contributors. You can help by researching, writing and updating these articles. It is an easy and fun way to get started with contributing to open source.