Reincharts
    Preparing search index...

    Interface SingleValueTooltipProps

    interface SingleValueTooltipProps {
        className?: string;
        displayValuesFor?: (props: SingleValueTooltipProps, moreProps: any) => any;
        fontFamily?: string;
        fontSize?: number;
        fontWeight?: number;
        labelFill?: string;
        labelFontWeight?: number;
        onClick?: (event: MouseEvent<SVGGElement, MouseEvent>) => void;
        origin?:
            | [number, number]
            | ((width: number, height: number) => [number, number]);
        valueFill?: string;
        xAccessor?: (d: any) => number;
        xDisplayFormat?: (value: number) => string;
        xInitDisplay?: string;
        xLabel?: string;
        yAccessor?: (d: any) => number;
        yDisplayFormat?: (value: number) => string;
        yInitDisplay?: string;
        yLabel: string;
    }
    Index

    Properties

    className?: string

    CSS class name for styling the tooltip.

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

    Function to determine which data item to display values for.

    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.

    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, can be static coordinates or function that calculates position.

    valueFill?: string

    Fill color for the tooltip values.

    xAccessor?: (d: any) => number

    Data accessor function for X values.

    xDisplayFormat?: (value: number) => string

    Function to format the displayed X value.

    xInitDisplay?: string

    Initial display text for X value when no data is available.

    xLabel?: string

    Label text for the X value.

    yAccessor?: (d: any) => number

    Data accessor function for Y values.

    yDisplayFormat?: (value: number) => string

    Function to format the displayed Y value.

    yInitDisplay?: string

    Initial display text for Y value when no data is available.

    yLabel: string

    Label text for the Y value.