Reincharts
    Preparing search index...

    Interface OHLCTooltipProps

    interface OHLCTooltipProps {
        accessor?: (data: any) => any;
        changeFormat?: (n: number | { valueOf(): number }) => string;
        className?: string;
        displayTexts?: { c: string; h: string; l: string; na: string; o: string };
        displayValuesFor?: (props: OHLCTooltipProps, moreProps: any) => any;
        fontFamily?: string;
        fontSize?: number;
        fontWeight?: number;
        labelFill?: string;
        labelFontWeight?: number;
        ohlcFormat?: (n: number | { valueOf(): number }) => string;
        onClick?: (event: MouseEvent<SVGGElement, MouseEvent>) => void;
        origin?:
            | [number, number]
            | ((width: number, height: number) => [number, number]);
        percentFormat?: (n: number | { valueOf(): number }) => string;
        textFill?: string | ((item: any) => string);
    }
    Index

    Properties

    accessor?: (data: any) => any

    Function to access OHLC data from the current item.

    changeFormat?: (n: number | { valueOf(): number }) => string

    Format function for displaying price changes.

    className?: string

    CSS class name for styling the tooltip.

    displayTexts?: { c: string; h: string; l: string; na: string; o: string }

    Text labels to display for each OHLC value.

    displayValuesFor?: (props: OHLCTooltipProps, moreProps: any) => any

    Function to determine which data should be displayed in the tooltip.

    fontFamily?: string

    Font family for the tooltip text.

    fontSize?: number

    Font size for the tooltip text.

    fontWeight?: number

    Font weight for the tooltip text.

    labelFill?: string

    Fill color for the tooltip labels.

    labelFontWeight?: number

    Font weight for the tooltip labels.

    ohlcFormat?: (n: number | { valueOf(): number }) => string

    Format function for displaying OHLC values.

    onClick?: (event: MouseEvent<SVGGElement, MouseEvent>) => void

    Click event handler for the tooltip.

    origin?:
        | [number, number]
        | ((width: number, height: number) => [number, number])

    Position of the tooltip, either as coordinates or a function that calculates position.

    percentFormat?: (n: number | { valueOf(): number }) => string

    Format function for displaying percentage changes.

    textFill?: string | ((item: any) => string)

    Fill color for the tooltip text values, can be static or function based on data.