99e2a55614
We can take advantage of JavaScript's invisible hoisting of variables to set them before they are defined. This simplifies the code for the various special cases in the `classed` operator, such as for SVG elements and browsers that support the tokenized class list. |
||
---|---|---|
data | ||
examples | ||
lib | ||
src | ||
tests | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
d3.behavior.js | ||
d3.behavior.min.js | ||
d3.chart.js | ||
d3.chart.min.js | ||
d3.csv.js | ||
d3.csv.min.js | ||
d3.geo.js | ||
d3.geo.min.js | ||
d3.geom.js | ||
d3.geom.min.js | ||
d3.js | ||
d3.layout.js | ||
d3.layout.min.js | ||
d3.min.js | ||
d3.time.js | ||
d3.time.min.js |
README.md
D3
D3 is a small, free JavaScript library for manipulating HTML documents based on data. D3 can help you quickly visualize your data as HTML or SVG, handle interactivity, and incorporate smooth transitions and staged animations into your pages. You can use D3 as a visualization framework (like Protovis), or you can use it to build dynamic pages (like jQuery).
Browser Support
D3 should work on any browser, with minimal requirements such as JavaScript and the W3C DOM API. By default D3 requires the Selectors API Level 1, but you can preload Sizzle for compatibility with older browsers. Some of the included D3 examples use additional browser features, such as SVG and CSS3 Transitions. These features are not required to use D3, but are useful for visualization! D3 is not a compatibility layer. The examples should work on Firefox, Chrome (Chromium), Safari (WebKit), Opera and IE9.
Note: Chrome has strict permissions for reading files out of the local file system. Some examples use AJAX which works differently via HTTP instead of local files. For the best experience, load the D3 examples from your own machine via HTTP. Any static file web server will work; for example you can run Python's built-in server:
python -m SimpleHTTPServer 8888
Once this is running, go to: http://localhost:8888/examples/