victory-native
Version:
A charting library for React Native with a focus on performance and customization.
19 lines (18 loc) • 647 B
TypeScript
import React from "react";
import { type Color, type SkFont } from "@shopify/react-native-skia";
import type { ChartBounds, MaybeNumber, PointsArray } from "../../types";
export type BarLabelConfig = {
position: "top" | "bottom" | "left" | "right";
font: SkFont | null;
color?: Color;
formatLabel?: (value: MaybeNumber) => string;
rotate?: number;
};
type BarGraphLabelProps = {
points: PointsArray;
chartBounds: ChartBounds;
barWidth?: number;
options: BarLabelConfig;
};
export declare const BarGraphLabels: ({ points, chartBounds, barWidth, options, }: BarGraphLabelProps) => React.JSX.Element[];
export {};