UNPKG

reaviz

Version:

Data Visualization using React

32 lines (31 loc) 1 kB
import { FC, ReactElement } from 'react'; import { ChartShallowDataShape } from '../../../common/data'; import { FunnelAxisLabel, FunnelAxisLabelProps } from './FunnelAxisLabel'; import { FunnelAxisLine, FunnelAxisLineProps } from './FunnelAxisLine'; export interface FunnelAxisProps { /** * Data to render the funnel. Set internally by `FunnelChart`. */ data: ChartShallowDataShape[]; /** * xScale for the funnel. Set internally by `FunnelChart`. */ xScale: any; /** * yScale for the funnel. Set internally by `FunnelChart`. */ yScale: any; /** * The funnel axis line. * * @default `<FunnelAxisLine />` */ line?: ReactElement<FunnelAxisLineProps, typeof FunnelAxisLine> | null; /** * Label component for the axis. * * @default `<FunnelAxisLabel />` */ label?: ReactElement<FunnelAxisLabelProps, typeof FunnelAxisLabel> | null; } export declare const FunnelAxis: FC<Partial<FunnelAxisProps>>;