Reincharts
    Preparing search index...

    Interface LabelAnnotationProps

    interface LabelAnnotationProps {
        className?: string;
        data?: any;
        fill?: string | ((data: any) => string);
        fontFamily?: string;
        fontSize?: number;
        onClick?: (
            e: MouseEvent,
            data: {
                data: any;
                xScale?: ScaleContinuousNumeric<number, number, never>;
                yScale?: ScaleContinuousNumeric<number, number, never>;
            },
        ) => void;
        opacity?: number;
        plotData: any[];
        rotate?: number;
        text?: string
        | ((data: any) => string);
        textAnchor?: "start" | "middle" | "end" | "inherit";
        tooltip?: string | ((data: any) => string);
        x?:
            | number
            | (
                (
                    __namedParameters: {
                        data: any;
                        plotData: any[];
                        xAccessor: (data: any) => any;
                        xScale: ScaleContinuousNumeric<number, number>;
                    },
                ) => number
            );
        xAccessor?: (data: any) => any;
        xScale?: ScaleContinuousNumeric<number, number, never>;
        y?:
            | number
            | (
                (
                    __namedParameters: {
                        data: any;
                        plotData: any[];
                        yScale: ScaleContinuousNumeric<number, number>;
                    },
                ) => number
            );
        yScale?: ScaleContinuousNumeric<number, number, never>;
    }
    Index

    Properties

    className?: string

    CSS class name for the annotation.

    data?: any

    Data point for the annotation.

    fill?: string | ((data: any) => string)

    Fill color for the annotation text.

    fontFamily?: string

    Font family for the annotation text.

    fontSize?: number

    Font size for the annotation text.

    onClick?: (
        e: MouseEvent,
        data: {
            data: any;
            xScale?: ScaleContinuousNumeric<number, number, never>;
            yScale?: ScaleContinuousNumeric<number, number, never>;
        },
    ) => void

    Click event handler for the annotation.

    opacity?: number

    Opacity of the annotation.

    plotData: any[]

    Plot data array.

    rotate?: number

    Rotation angle for the annotation text.

    text?: string | ((data: any) => string)

    Text content of the annotation.

    textAnchor?: "start" | "middle" | "end" | "inherit"

    Text anchor position.

    tooltip?: string | ((data: any) => string)

    Tooltip text for the annotation.

    x?:
        | number
        | (
            (
                __namedParameters: {
                    data: any;
                    plotData: any[];
                    xAccessor: (data: any) => any;
                    xScale: ScaleContinuousNumeric<number, number>;
                },
            ) => number
        )

    X position of the annotation.

    xAccessor?: (data: any) => any

    X accessor function for data.

    xScale?: ScaleContinuousNumeric<number, number, never>

    X scale instance.

    y?:
        | number
        | (
            (
                __namedParameters: {
                    data: any;
                    plotData: any[];
                    yScale: ScaleContinuousNumeric<number, number>;
                },
            ) => number
        )

    Y position of the annotation.

    yScale?: ScaleContinuousNumeric<number, number, never>

    Y scale instance.