UNPKG

react-native-chart-kit

Version:

Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.

27 lines 1.4 kB
import type { ChartXValue, Size } from "../../../core/index"; import type { ResolvedCartesianChartTheme } from "../../theme/presets"; import type { BarChartProps } from "./types"; export declare const labelBaselineOffset = 20; export declare const measureBarChartText: (text: string, options?: { fontSize?: number; }) => Size; export declare const getBarChartFontTextOptions: (theme: ResolvedCartesianChartTheme) => { fontFamily?: string; fontSize: number; }; export declare const getBarChartSeriesColor: (theme: ResolvedCartesianChartTheme, index: number) => string; export declare const defaultFormatBarChartXLabel: (value: ChartXValue) => string; export declare const defaultFormatBarChartYLabel: (value: number) => string; export declare const getBarChartXKey: (value: ChartXValue) => string | number; export declare const getMaxBarChartTextSize: (sizes: Size[]) => Size; export declare const getVisibleBarChartXLabelInterval: ({ labelStrategy, labelSizes, plotWidth }: { labelStrategy: BarChartProps<Record<string, unknown>>["labelStrategy"]; labelSizes: Size[]; plotWidth: number; }) => number; export declare const getVisibleBarChartYLabelInterval: ({ labelStrategy, labelSizes, plotHeight }: { labelStrategy: BarChartProps<Record<string, unknown>>["labelStrategy"]; labelSizes: Size[]; plotHeight: number; }) => number; //# sourceMappingURL=modelUtils.d.ts.map