UNPKG

reaviz

Version:

Data Visualization using React

42 lines (41 loc) 1.16 kB
import { FC, ReactElement } from 'react'; import { ChartProps } from '../common/containers'; import { ChartDataShape } from '../common/data'; import { RadialGaugeSeries, RadialGaugeSeriesProps, StackedRadialGaugeSeries, StackedRadialGaugeSeriesProps } from './RadialGaugeSeries'; export interface RadialGaugeProps extends ChartProps { /** * Data the chart will receive to render. */ data: ChartDataShape[]; /** * Min value to scale on. * * @default 0 */ minValue?: number | number[]; /** * Max value to scale on. * * @default 100 */ maxValue?: number | number[]; /** * Start angle for the first value. * * @default 0 */ startAngle?: number; /** * End angle for the last value. * * @default Math.PI * 2 */ endAngle?: number; /** * Gauge series component to render. * * @default `<RadialGaugeSeries />` */ series?: ReactElement<RadialGaugeSeriesProps | StackedRadialGaugeSeriesProps, typeof RadialGaugeSeries | typeof StackedRadialGaugeSeries>; } export declare const RadialGauge: FC<RadialGaugeProps>;