@while-and-for/tremor-react
Version:
The React library to build dashboards faster.
25 lines (24 loc) • 751 B
TypeScript
/// <reference types="react" />
import { Color, ValueFormatter } from "../../../lib";
import type BaseAnimationTimingProps from "./BaseAnimationTimingProps";
interface BaseChartProps extends BaseAnimationTimingProps, React.HTMLAttributes<HTMLDivElement> {
data: any[];
categories: string[];
index: string;
colors?: Color[];
valueFormatter?: ValueFormatter;
startEndOnly?: boolean;
showXAxis?: boolean;
showYAxis?: boolean;
yAxisWidth?: number;
showTooltip?: boolean;
showGradient?: boolean;
showLegend?: boolean;
showGridLines?: boolean;
autoMinValue?: boolean;
minValue?: number;
maxValue?: number;
allowDecimals?: boolean;
noDataText?: string;
}
export default BaseChartProps;