UNPKG

reaviz

Version:

Data Visualization using React

49 lines (48 loc) 1.36 kB
import { ReactElement, FC } from 'react'; import { ChartDataShape } from '../common/data'; import { ChartProps } from '../common/containers'; import { RadialAreaSeries, RadialAreaSeriesProps } from './RadialAreaSeries'; import { RadialAxis, RadialAxisProps } from '../common/Axis/RadialAxis'; export interface RadialAreaChartProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartDataShape[]; /** * The series component that renders the area components. * * @default `<RadialAreaSeries />` */ series: ReactElement<RadialAreaSeriesProps, typeof RadialAreaSeries>; /** * The inner radius for the chart center. * * @default 0.1 */ innerRadius: number; /** * The radial axis component for the chart. * * @default `<RadialAxis />` */ axis: ReactElement<RadialAxisProps, typeof RadialAxis> | null; /** * Start angle for the first value. * * @default 0 */ startAngle?: number; /** * End angle for the last value. * * @default 2 * Math.PI */ endAngle?: number; /** * Whether the curve should be closed. Set to true by deafult * * @default true */ isClosedCurve?: boolean; } export declare const RadialAreaChart: FC<Partial<RadialAreaChartProps>>;