npm.io
1.0.3 • Published 2 years ago

@types/recharts-scale

Licence
MIT
Version
1.0.3
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/recharts-scale

Summary

This package contains type definitions for recharts-scale (https://github.com/recharts/recharts-scale).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/recharts-scale.

index.d.ts

/**
 * Calculate the ticks of an interval
 * @param [minAndMax]      min: The minimum value, max: The maximum value
 * @param tickCount        The count of ticks
 * @param allowDecimals    Allow the ticks to be decimals or not - defaults to true
 */
export function getTickValues(domain: [number, number], tickCount?: number, allowDecimals?: boolean): number[];

/**
 * Calculate the ticks of an interval
 * @param [minAndMax]      min: The minimum value, max: The maximum value
 * @param tickCount        The count of ticks
 * @param allowDecimals    Allow the ticks to be decimals or not - defaults to true
 */
export function getNiceTickValues(domain: [number, number], tickCount?: number, allowDecimals?: boolean): number[];

/**
 * Calculate the ticks of an interval
 * @param [minAndMax]      min: The minimum value, max: The maximum value
 * @param tickCount        The count of ticks
 * @param allowDecimals    Allow the ticks to be decimals or not - defaults to true
 */
export function getTickValuesFixedDomain(
    domain: [number, number],
    tickCount?: number,
    allowDecimals?: boolean,
): number[];

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by John Reilly.