Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Перейти к файлу
Mike Bostock d0441e6170 Automatic precision for custom tick formats.
You can now pass a format specifier to scale.tickFormat (for linear, pow and
identity scales). If the format specifier doesn't have a defined precision, the
precision will be set automatically by the scale, returning the appropriate
format. This provides a convenient, declarative way of specifying a format whose
precision will be automatically set by the scale.

This works with axes, too! For example, `axis.ticks(10, "%")` will now use a
percentage format rather than the default format, while still computing the
appropriate precision.

This commit also includes a fix to make d3.format more robust when unreasonable
precisions are specified. Rather than throwing an error, the nearest reasonable
value is used instead.

Fixes #912.
2013-03-11 18:06:05 -07:00
lib add var colorbrewer = 2013-02-14 14:17:57 -05:00
src Automatic precision for custom tick formats. 2013-03-11 18:06:05 -07:00
test Automatic precision for custom tick formats. 2013-03-11 18:06:05 -07:00
.gitignore Add .DS_Store to .gitignore. 2011-11-03 09:06:04 -07:00
.gitmodules Replace submodule with package.json. 2011-08-18 10:10:16 -07:00
.npmignore Add .npmignore. 2011-11-18 16:52:35 -08:00
.travis.yml Add .travis.yml. 2013-03-07 09:54:19 -08:00
LICENSE Update copyright year. 2012-02-19 13:35:09 -08:00
Makefile Fix for running `make clean && make -j all`. 2013-03-11 22:55:29 +00:00
README.md README.md: Point hyperlinks at github explicitly 2013-01-07 06:16:37 -08:00
component.json Fix ISO date parsing on Safari 5. 2013-03-03 10:28:58 -08:00
d3.js Automatic precision for custom tick formats. 2013-03-11 18:06:05 -07:00
d3.min.js Automatic precision for custom tick formats. 2013-03-11 18:06:05 -07:00
globals.js Use captured references for document and window. 2013-01-31 15:11:40 -08:00
index-browserify.js Rename d3.v3.js to d3.js. 2012-10-05 18:46:05 -07:00
index.js Use captured references for document and window. 2013-01-31 15:11:40 -08:00
package.json JSDOM now correctly returns null. 2013-03-11 10:57:57 -07:00

README.md

Data-Driven Documents

D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG and CSS. D3s 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.

Want to learn more? See the wiki.

For examples, see the gallery and mbostocks bl.ocks.