Added support for QuantitiveScale.nice argument: count

See [the documentation](https://github.com/mbostock/d3/wiki/Quantitative-Scales#wiki-linear_nice) for details.

Tested in my codebase and works well.
This commit is contained in:
Drew Noakes
2013-11-19 15:06:32 +00:00
parent 4d8c44639e
commit de5ac7d0fe

4
d3/d3.d.ts vendored
View File

@@ -2438,8 +2438,10 @@ declare module D3 {
clamp(clamp: boolean): QuantitiveScale;
/**
* extend the scale domain to nice round numbers.
*
* @param count Optional number of ticks to exactly fit the domain
*/
nice(): QuantitiveScale;
nice(count?: number): QuantitiveScale;
/**
* get representative values from the input domain.
*