victory-native
Version:
A charting library for React Native with a focus on performance and customization.
24 lines (23 loc) • 1.21 kB
TypeScript
import React from "react";
import { type Color, type SkFont } from "@shopify/react-native-skia";
import type { AxisLabelPosition, AxisLabelRenderer, AxisTitle, ChartBounds, InputFields, Scale, YAxisSide } from "../../types";
type CategoryYAxisProps<RawData extends Record<string, unknown>, XK extends keyof InputFields<RawData>> = {
axisSide: YAxisSide;
font?: SkFont | null;
formatYLabel?: (label: InputFields<RawData>[XK]) => string;
labelRenderer?: AxisLabelRenderer<InputFields<RawData>[XK]>;
title?: AxisTitle;
labelColor: string;
labelOffset: number;
labelPosition: AxisLabelPosition;
lineColor: Color;
lineWidth: number;
linePathEffect?: React.ReactNode;
xScale: Scale;
yScale: Scale;
yTicksNormalized: number[];
ix: InputFields<RawData>[XK][];
chartBounds: ChartBounds;
};
export declare const CategoryYAxis: <RawData extends Record<string, unknown>, XK extends keyof InputFields<RawData>>({ xScale, yScale, yTicksNormalized, axisSide, labelPosition, labelOffset, labelColor, lineWidth, lineColor, font, title, labelRenderer, formatYLabel, linePathEffect, chartBounds, ix, }: CategoryYAxisProps<RawData, XK>) => React.JSX.Element;
export {};