From de5ac7d0fe8fda65456d281ed6672d3233f71044 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 19 Nov 2013 15:06:32 +0000 Subject: [PATCH] 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. --- d3/d3.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index b944869d5..382a95875 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -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. *