Interface LegendCategoricalProps<T>

Type Parameters

  • T

Hierarchy

  • LegendCategoricalProps

Properties

getItemColor: ((item: T, itemIndex: number) => string)

Type declaration

    • (item: T, itemIndex: number): string
    • Function that returns the legend item's color.

      Returns

      The item color.

      Parameters

      • item: T

        The legend item.

      • itemIndex: number

        Index of the legend item.

      Returns string

getItemLabel: ((item: T, itemIndex: number) => string)

Type declaration

    • (item: T, itemIndex: number): string
    • Function that returns the legend item's label.

      Returns

      The item label.

      Parameters

      • item: T

        The legend item.

      • itemIndex: number

        Index of the legend item.

      Returns string

items: T[]

Array of legend items, containing properties about each section of the legend.

orientation?: "horizontal" | "vertical"

Orientation of the legend.

Default

"horizontal"

Generated using TypeDoc