Constructors

  • Parameters

    • label: string

      The legend entry text. A null label will start a group.

    • form: LegendForm

      The form to draw for this entry.

    • OptionalformSize: any

      Set to NaN to use the legend's default.

    • OptionalformLineWidth: any

      Set to NaN to use the legend's default.

    • OptionalformLineDashEffect: DashPathEffect

      Set to nil to use the legend's default.

    • OptionalformColor: string | number | Color

      The color for drawing the form.

    Returns LegendEntry

Properties

The form to draw for this entry.

NONE will avoid drawing a form, and any related space. EMPTY will avoid drawing a form, but keep its space. DEFAULT will use the Legend's default.

formColor: string | number | Color

The color for drawing the form

formLineDashEffect: DashPathEffect

Line dash path effect used for shapes that consist of lines.

Set to null to use the legend's default

formLineWidth: number

Line width used for shapes that consist of lines.

Set as NaN to use the legend's default

formSize: number

Form size will be considered except for when .None is used

Set as NaN to use the legend's default

label: string

The legend entry text. A null label will start a group.