UNPKG

bullet-chart-react

Version:
36 lines (35 loc) 1.04 kB
/// <reference types="react" /> import './index.scss'; type IOpt = { color?: string; barWidth?: number; value?: string | number; }; interface BulletChartPropsType { className?: string; style?: React.CSSProperties; tooltipClassName?: string; tooltipStyle?: React.CSSProperties; splitCount?: number; option: { 'bgBar'?: IOpt; 'mainBar'?: IOpt; 'markLine'?: IOpt; }; formatNumber?: { func: Function | null; params?: any[]; } | null; minPercentage?: number; tooltipData: any; tooltipFormatter?: ((data: any) => (JSX.Element | (any & {}))) | null; isTooltipHalfAdaptPosition?: boolean; isLabelKeepInteger?: boolean; isCenterZeroLabel?: boolean; } declare function BulletChart(props: BulletChartPropsType): JSX.Element; declare namespace BulletChart { var defaultProps: BulletChartPropsType; } declare const _default: import("react").MemoExoticComponent<typeof BulletChart>; export default _default;