Skip to content

Commit a39a41a

Browse files
committed
add d3.js
1 parent a977512 commit a39a41a

File tree

7 files changed

+9404
-1
lines changed

7 files changed

+9404
-1
lines changed

d3/Gruntfile.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = function(grunt) {
2+
var pkg = grunt.file.readJSON('package.json');
3+
4+
grunt.initConfig({
5+
pkg: pkg,
6+
7+
download: {
8+
options: {
9+
dest: 'src',
10+
},
11+
src: {
12+
options: {
13+
transform: function(code) {
14+
code = 'define(function(require, exports, module) {\n' + code;
15+
code += '});';
16+
return code
17+
}
18+
},
19+
url: 'https://raw.github.com/mbostock/d3/v<%= pkg.version %>/d3.js',
20+
name: 'd3.js'
21+
}
22+
}
23+
});
24+
25+
grunt.loadGlobalTasks('spm-build');
26+
grunt.util._.merge(grunt.config.data, require('spm-build').config);
27+
28+
grunt.loadTasks('../_tasks/download/tasks');
29+
grunt.registerTask('build', ['download', 'spm-build']);
30+
};

d3/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Data-Driven Documents
2+
3+
<a href="http://d3js.org"><img src="http://d3js.org/logo.svg" align="left" hspace="10" vspace="6"></a>
4+
5+
**D3.js** is a JavaScript library for manipulating documents based on data. **D3** helps you bring data to life using HTML, SVG and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.
6+
7+
Want to learn more? [See the wiki.](https://github.com/mbostock/d3/wiki)
8+
9+
For examples, [see the gallery](https://github.com/mbostock/d3/wiki/Gallery) and [mbostock’s bl.ocks](http://bl.ocks.org/mbostock).

0 commit comments

Comments
 (0)