Skip to main content

calculateBarWidth

Callable

  • calculateBarWidth(count: number, firstCount: number, maxWidth: number): number

  • Calculate a bar's width


    Parameters

    • count: number

      This bar's count

    • firstCount: number

      The first bar's count

    • maxWidth: number

      The maximum width of the bar

    Returns number

    The width of the bar