victory-native
Version:
A charting library for React Native with a focus on performance and customization.
12 lines (11 loc) • 490 B
TypeScript
import type { ChartBounds, PointsArray } from "../../types";
import type { RoundedCorners } from "../../utils/createRoundedRectPath";
export type UseBarWidthOptions = {
points: PointsArray | PointsArray[];
chartBounds: ChartBounds;
innerPadding: number;
roundedCorners?: RoundedCorners;
customBarWidth?: number;
barCount?: number;
};
export declare const useBarWidth: ({ customBarWidth, chartBounds, innerPadding, barCount, points, }: UseBarWidthOptions) => number;