Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Перейти к файлу
Michael Bostock 1d9ed5ae72 Add d3.interpolateHsl.
This allows scale interpolation in HSL space. For example:

    var fill = d3.scale.linear()
        .interpolate(d3.interpolateHsl)
        .domain([0, 100])
        .range([d3.hsl(180, .5, 1), d3.hsl(180, .5, 0)]);

You could approximate this in previous versions using d3.interpolateString, but
the new interpolation method is slightly faster and also provides backwards-
compatibility for browsers that only understand RGB.
2011-02-27 15:05:18 -08:00
data Non-contiguous cartogram example. 2011-02-23 12:33:18 -08:00
examples Restructure voronoi example. 2011-02-27 13:05:55 -08:00
lib Support for Sizzle. 2011-02-17 11:56:13 -08:00
src Add d3.interpolateHsl. 2011-02-27 15:05:18 -08:00
.gitignore Add _site to .gitignore. 2010-10-04 20:36:36 -07:00
LICENSE Fix typo in LICENSE. 2010-10-10 10:37:07 -07:00
Makefile More convenient pies. 2011-02-24 14:13:05 -08:00
README.md Tweak README. 2011-02-25 10:01:34 -08:00
d3.behavior.js Add d3.behavior module. 2011-02-11 13:00:41 -08:00
d3.behavior.min.js Add d3.behavior module. 2011-02-11 13:00:41 -08:00
d3.csv.js Turn off the compiler's "advanced" optimizations. 2011-01-05 11:35:39 -08:00
d3.csv.min.js Turn off the compiler's "advanced" optimizations. 2011-01-05 11:35:39 -08:00
d3.geo.js Non-contiguous cartogram example. 2011-02-23 12:33:18 -08:00
d3.geo.min.js Non-contiguous cartogram example. 2011-02-23 12:33:18 -08:00
d3.geom.js Non-contiguous cartogram example. 2011-02-23 12:33:18 -08:00
d3.geom.min.js Non-contiguous cartogram example. 2011-02-23 12:33:18 -08:00
d3.js Add d3.interpolateHsl. 2011-02-27 15:05:18 -08:00
d3.layout.js Sort for layout, but don't reorder. 2011-02-24 14:36:57 -08:00
d3.layout.min.js Sort for layout, but don't reorder. 2011-02-24 14:36:57 -08:00
d3.min.js Add d3.interpolateHsl. 2011-02-27 15:05:18 -08:00
d3.time.js Turn off the compiler's "advanced" optimizations. 2011-01-05 11:35:39 -08:00
d3.time.min.js Turn off the compiler's "advanced" optimizations. 2011-01-05 11:35:39 -08:00

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. To view some of the examples locally, you will need to start a local web server. One easy way to do that is to install Tornado:

cd ..
git clone https://github.com/facebook/tornado.git
cd tornado
sudo python setup.py install
cd ../d3

We have provided a Tornado script for serving static files:

python examples

Once this is running, go to: http://0.0.0.0:8888/examples/index.html