Reincharts
    Preparing search index...

    Function plotDataLengthBarWidth

    • Bar width is based on the amount of items in the plot data and the distance between the first and last of those items.

      Type Parameters

      • T

      Parameters

      • props: { widthRatio: number }

        the props passed to the series.

      • moreProps: {
            plotData: T[];
            xAccessor: (data: T) => number | Date;
            xScale:
                | ScaleContinuousNumeric<number, number, never>
                | ScaleTime<number, number, never>;
        }

        an object holding the xScale, xAccessor and plotData.

      Returns number

      the bar width.