Reincharts
    Preparing search index...

    Interface StackedBarSeriesProps

    interface StackedBarSeriesProps {
        baseAt?:
            | number
            | (
                (
                    xScale: ScaleContinuousNumeric<number, number>,
                    yScale: ScaleContinuousNumeric<number, number>,
                    d: [number, number],
                    moreProps: any,
                ) => number
            );
        clip?: boolean;
        direction?: "up" | "down";
        fillStyle?: string | ((data: any, y: number) => string);
        spaceBetweenBar?: number;
        strokeStyle?: string | ((data: any, y: number) => string);
        swapScales?: boolean;
        width?: number | ((props: StackedBarSeriesProps, moreProps: any) => number);
        widthRatio?: number;
        yAccessor: ((data: any) => undefined | number) | ((d: any) => number)[];
    }
    Index

    Properties

    baseAt?:
        | number
        | (
            (
                xScale: ScaleContinuousNumeric<number, number>,
                yScale: ScaleContinuousNumeric<number, number>,
                d: [number, number],
                moreProps: any,
            ) => number
        )

    Function or number for the base of the bars.

    clip?: boolean

    Whether to clip the bars to the chart area.

    direction?: "up" | "down"

    Direction the bars grow from the base.

    fillStyle?: string | ((data: any, y: number) => string)

    Fill color for the bars, can be static or function based on data and y value.

    spaceBetweenBar?: number

    Space between bars in pixels.

    strokeStyle?: string | ((data: any, y: number) => string)

    Stroke style for the bars, can be static or function based on data and y value.

    swapScales?: boolean

    Whether to swap X and Y scales.

    width?: number | ((props: StackedBarSeriesProps, moreProps: any) => number)

    Width of each bar, or a function to determine width.

    widthRatio?: number

    Ratio of bar width to available space.

    yAccessor: ((data: any) => undefined | number) | ((d: any) => number)[]

    Data accessor function(s) for y-values. Can be single function or array of functions for stacking.