Reincharts
    Preparing search index...
    interface LabelProps {
        data?: any;
        fillStyle?: string | ((data: any) => string);
        fontFamily?: string;
        fontSize?: number;
        fontWeight?: string;
        rotate?: number;
        selectCanvas?: (canvases: any) => any;
        text?: string | ((data: any) => string);
        textAlign?: CanvasTextAlign;
        x:
            | number
            | (
                (
                    xScale: ScaleContinuousNumeric<number, number>,
                    xAccessor: any,
                    data: any,
                    plotData: any[],
                ) => number
            );
        xAccessor?: (data: any) => any;
        xScale?: ScaleContinuousNumeric<number, number, never>;
        y:
            | number
            | (
                (
                    yScale: ScaleContinuousNumeric<number, number>,
                    data: any,
                    plotData: any[],
                ) => number
            );
        yScale?: ScaleContinuousNumeric<number, number, never>;
    }
    Index

    Properties

    data?: any

    Data point associated with this label.

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

    Fill color for the label text, can be static string or function based on data.

    fontFamily?: string

    Font family for the label text.

    fontSize?: number

    Font size for the label text in pixels.

    fontWeight?: string

    Font weight for the label text (normal, bold, etc.).

    rotate?: number

    Rotation angle for the label text in degrees.

    selectCanvas?: (canvases: any) => any

    Function to select which canvas to draw on from available canvases.

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

    Text content of the label, can be static string or function based on data.

    textAlign?: CanvasTextAlign

    Text alignment for the label (left, center, right, etc.).

    x:
        | number
        | (
            (
                xScale: ScaleContinuousNumeric<number, number>,
                xAccessor: any,
                data: any,
                plotData: any[],
            ) => number
        )

    X position of the label, can be static number or function that calculates position.

    xAccessor?: (data: any) => any

    Function to extract x-value from data points.

    xScale?: ScaleContinuousNumeric<number, number, never>

    D3 scale for x-axis positioning.

    y:
        | number
        | (
            (
                yScale: ScaleContinuousNumeric<number, number>,
                data: any,
                plotData: any[],
            ) => number
        )

    Y position of the label, can be static number or function that calculates position.

    yScale?: ScaleContinuousNumeric<number, number, never>

    D3 scale for y-axis positioning.