Reincharts
    Preparing search index...

    Interface BarSeriesProps

    interface BarSeriesProps {
        baseAt?:
            | number
            | (
                (
                    xScale:
                        | ScaleContinuousNumeric<number, number, never>
                        | ScaleTime<number, number, never>,
                    yScale: ScaleContinuousNumeric<number, number>,
                    d: [number, number],
                    moreProps: any,
                ) => number
            );
        clip?: boolean;
        fillStyle?: string | ((data: any) => string);
        strokeStyle?: string | ((data: any) => string);
        strokeWidth?: number;
        swapScales?: boolean;
        width?:
            | number
            | ((props: { widthRatio: number }, moreProps: any) => number);
        widthRatio?: number;
        yAccessor: (data: any) => undefined | number;
    }
    Index

    Properties

    baseAt?:
        | number
        | (
            (
                xScale:
                    | ScaleContinuousNumeric<number, number, never>
                    | ScaleTime<number, number, never>,
                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.

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

    Fill color for the bars.

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

    Stroke color for the bar borders.

    strokeWidth?: number

    Width of the bar stroke.

    swapScales?: boolean

    Swap X and Y scales.

    width?: number | ((props: { widthRatio: number }, moreProps: any) => number)

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

    widthRatio?: number

    Ratio of bar width to available space.

    yAccessor: (data: any) => undefined | number