1.2 KiB
1.2 KiB
title |
---|
dc.js |
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>