UNPKG

react-d3-axis-mod

Version:

React-based Axis component for D3 (fork with text shadow)

18 lines (17 loc) 546 B
import type { Scaler } from './types'; export declare const TOP = "TOP"; export declare const RIGHT = "RIGHT"; export declare const BOTTOM = "BOTTOM"; export declare const LEFT = "LEFT"; declare type AxisProps<T> = { style: Record<string, any>; range: number[]; values: Array<T>; position: Scaler<T>; format: (d: T) => string | number; shadow?: number; bg?: string; fg?: string; }; export default function Axis<T>({ style, range, values, position, format, shadow, bg, fg, }: AxisProps<T>): JSX.Element; export {};