Interface MultiProgressBarProps<T>

Type Parameters

  • T

Hierarchy

Properties

barColor?: string

Color of the progress bar charted bars.

Default

"#000000"

bgColor?: string

Background color of the progress bar. If undefined, theme.palette.border.default is used.

borderRadius?: number

Border radius of the progress bar.

Default

4

getItemLabel: ((item: T) => string)

Type declaration

    • (item: T): string
    • Function that returns the progress bar item's label.

      Returns

      The item label.

      Parameters

      • item: T

        The progress bar item.

      Returns string

getItemValue: ((item: T) => number)

Type declaration

    • (item: T): number
    • Function that returns the progress bar item's value.

      Returns

      The item value.

      Parameters

      • item: T

        The progress bar item.

      Returns number

height?: number

Height of the progress bar.

Default

16 (DEFAULT_HEIGHT)

items: [T, T]

Array of two progress bar items, containing properties about each item rendered in the progress bar.

maxValue: number

Maximum value of the progress bar's range.

title?: string

A text description of what the progress bar is displaying.

width?: number

Width of the progress bar.

Default

100 (DEFAULT_WIDTH)

Generated using TypeDoc