@types/recharts-scale
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by John Reilly.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/recharts-scale

Weekly Downloads

25,146

Version

1.0.3

License

MIT

Unpacked Size

4.82 kB

Total Files

5

Last publish

Collaborators

  • types