mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +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:
4
d3/d3.d.ts
vendored
4
d3/d3.d.ts
vendored
@@ -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