UNPKG

victory-native

Version:

A charting library for React Native with a focus on performance and customization.

10 lines (8 loc) 253 B
import type { MaybeNumber } from "../../types"; export const getBarLabelText = ( value: MaybeNumber, formatLabel?: (value: MaybeNumber) => string, ) => { if (formatLabel) return formatLabel(value); return value == null ? "" : String(value); };