cl-react-graph
Version:
20 lines (19 loc) • 400 B
TypeScript
import { FC } from 'react';
declare type TAxis = 'x' | 'y';
declare type TAxisValue = string | number;
interface IAxis {
stroke?: string;
height: number;
width: number;
textWidth?: number;
axis: TAxis;
values: TAxisValue[];
tickSize?: number;
scale?: string;
}
export interface IAxes {
y: IAxis;
x: IAxis;
}
declare const Axis: FC<IAxis>;
export default Axis;