mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +08:00
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:
Vendored
+3
-1
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user