Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LegendRenderable

An interface for classes that represent a legend object.

export
interface

LegendRenderable

Hierarchy

  • LegendRenderable

Implemented by

Index

Properties

$el

$el: any

The DOM element for the legend.

memberof

LegendRenderable

key

key: string

Key associated with the legend.

memberof

LegendRenderable

Methods

getSize

  • Returns the size of the legend content.

    memberof

    LegendRenderable

    Returns Size

hide

  • hide(): void
  • Hides the legend DOM element.

    memberof

    LegendRenderable

    Returns void

reset

  • reset(): void
  • Resets the legend.

    memberof

    LegendRenderable

    Returns void

setMetric

  • setMetric(metric: boolean): void
  • Sets whether to display data values in Metric units.

    memberof

    LegendRenderable

    Parameters

    • metric: boolean

    Returns void

setSize

  • setSize(size: Size): void
  • Sets the size of the legend.

    memberof

    LegendRenderable

    Parameters

    Returns void

show

  • show(): void
  • Shows the legend DOM element.

    memberof

    LegendRenderable

    Returns void

update

  • update(opts?: any, force?: boolean): void
  • Forces the legend to update if needed.

    memberof

    LegendRenderable

    Parameters

    • Optional opts: any
    • Optional force: boolean

    Returns void

Generated using TypeDoc