UNPKG

@lobehub/charts

Version:

React modern charts components built on recharts

30 lines (29 loc) 931 B
import React, { HTMLAttributes, ReactNode } from 'react'; import { NoDataProps } from "../common/NoData"; import { ValueFormatter } from "../types/charts"; export interface Bar { [key: string]: any; color?: string; href?: string; icon?: ReactNode; key?: string; name: ReactNode; target?: string; value: number; } export interface BarListProps extends HTMLAttributes<HTMLDivElement> { color?: string; data: Bar[]; height?: string | number; leftLabel?: ReactNode; loading?: boolean; noDataText?: NoDataProps['noDataText']; onValueChange?: (payload: Bar) => void; rightLabel?: ReactNode; showAnimation?: boolean; sortOrder?: 'ascending' | 'descending' | 'none'; valueFormatter?: ValueFormatter; width?: string | number; } declare const BarList: React.ForwardRefExoticComponent<BarListProps & React.RefAttributes<HTMLDivElement>>; export default BarList;