UNPKG

reaviz

Version:

Data Visualization using React

56 lines (55 loc) 1.38 kB
import { FC, ReactElement } from 'react'; import { RadialAxisTickSeries, RadialAxisTickSeriesProps } from './RadialAxisTickSeries'; import { RadialAxisArcSeries, RadialAxisArcSeriesProps } from './RadialAxisArcSeries'; export interface RadialAxisProps { /** * Height of the axis. */ height: number; /** * Width of the axis. */ width: number; /** * Scale to use for the axis. */ xScale: any; /** * Inner radius of the axis. * * @default 10 */ innerRadius: number; /** * Type of the axis. * * @default 'value' */ type: 'value' | 'time' | 'category'; /** * Arc element to render. * * @default `<RadialAxisArcSeries />` */ arcs: ReactElement<RadialAxisArcSeriesProps, typeof RadialAxisArcSeries> | null; /** * Tick element to render. * * @default `<RadialAxisTickSeries />` */ ticks: ReactElement<RadialAxisTickSeriesProps, typeof RadialAxisTickSeries> | null; /** * Start angle for the first value. * * @default 0 */ startAngle?: number; /** * End angle for the last value. * * @default 2 * Math.PI */ endAngle?: number; } export declare const RadialAxis: FC<Partial<RadialAxisProps>>; export declare const RADIAL_AXIS_DEFAULT_PROPS: Partial<RadialAxisProps>;