MAIDR JavaScript API
    Preparing search index...
    • Bin values as Excel's histogram does.

      The regular bins start at the smallest value, or at the underflow value when there is an underflow bin, and stop at the largest, or at the overflow value. An underflow bin holds every value at or below its value, an overflow bin every value above its value; each is there whenever the chart enables it, empty or not, as Excel draws them.

      Parameters

      • values: readonly number[]

        The numbers binned; blanks already left out.

      • rule: BinRule

        How Excel was told to bin them.

      Returns Bin[]

      The bins, in axis order.