victory-native
Version:
A charting library for React Native with a focus on performance and customization.
19 lines (18 loc) • 872 B
TypeScript
import * as React from "react";
import { type Color } from "@shopify/react-native-skia";
import type { PropsWithChildren } from "react";
import type { ChartBounds, PointsArray } from "../../types";
import { type PathAnimationConfig } from "../../hooks/useAnimatedPath";
import { type HorizontalStackedBarOptionsFn } from "../hooks/useHorizontalStackedBarPaths";
type CartesianHorizontalStackedBarProps = {
points: PointsArray[];
chartBounds: ChartBounds;
innerPadding?: number;
animate?: PathAnimationConfig;
barWidth?: number;
barCount?: number;
colors?: Color[];
barOptions?: HorizontalStackedBarOptionsFn;
};
export declare const HorizontalStackedBar: ({ points, chartBounds, animate, innerPadding, barWidth, barCount, barOptions, colors, }: PropsWithChildren<CartesianHorizontalStackedBarProps>) => React.JSX.Element | null;
export {};