UNPKG

reaviz

Version:

Data Visualization using React

34 lines (32 loc) 1.04 kB
import { FC, ReactElement } from 'react'; import { ChartDataShape } from '../common/data'; import { RadialBarSeries, RadialBarSeriesProps } from './RadialBarSeries'; import { ChartProps } from '../common/containers'; import { RadialAxis, RadialAxisProps } from '../common/Axis/RadialAxis'; export interface RadialBarChartProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartDataShape[]; /** * The series component that renders the bar components. */ series: ReactElement<RadialBarSeriesProps, typeof RadialBarSeries>; /** * The radial axis component for the chart. */ axis: ReactElement<RadialAxisProps, typeof RadialAxis> | null; /** * The inner radius for the chart center. */ innerRadius: number; /** * Start angle for the first value. */ startAngle?: number; /** * End angle for the last value. */ endAngle?: number; } export declare const RadialBarChart: FC<Partial<RadialBarChartProps>>;