d0441e6170
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. |
||
---|---|---|
lib | ||
src | ||
test | ||
.gitignore | ||
.gitmodules | ||
.npmignore | ||
.travis.yml | ||
LICENSE | ||
Makefile | ||
README.md | ||
component.json | ||
d3.js | ||
d3.min.js | ||
globals.js | ||
index-browserify.js | ||
index.js | ||
package.json |
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. 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.
Want to learn more? See the wiki.
For examples, see the gallery and mbostock’s bl.ocks.