Options
All
  • Public
  • Public/Protected
  • All
Menu

A legend specific to pie and donut chart types. Inherits SciChartLegendBase

Hierarchy

Implements

Index

Properties

animate

animate: boolean = true

Protected div

div: HTMLDivElement

Protected eventListenersCollection

eventListenersCollection: Map<string, IEventSubscriptionItem[]> = new Map<string,IEventSubscriptionItem[]>()

Protected invalidateParentSurface

invalidateParentSurface: () => void

Type declaration

    • (): void
    • Returns void

Protected isDirty

isDirty: boolean = true

Protected marginProperty

marginProperty: number = 10

Protected orientationProperty

orientationProperty: ELegendOrientation = ELegendOrientation.Vertical

Protected parentDiv

parentDiv: HTMLDivElement

Protected parentSurfaceProperty

parentSurfaceProperty: ISciChartSurfaceBase

Protected placementDivIdProperty

placementDivIdProperty: string | HTMLDivElement

Protected placementProperty

placementProperty: ELegendPlacement = ELegendPlacement.TopLeft

Protected rootDiv

rootDiv: HTMLDivElement

Protected seriesViewRect

seriesViewRect: Rect

Protected showLegendProperty

showLegendProperty: boolean = true

Readonly type

type: SciChartPieLegend = ELegendType.SciChartPieLegend

Accessors

margin

  • get margin(): number
  • set margin(value: number): void
  • Gets or sets the margin in pixels

    Returns number

  • Gets or sets the margin in pixels

    Parameters

    • value: number

    Returns void

orientation

placement

placementDivId

  • get placementDivId(): string | HTMLDivElement
  • set placementDivId(value: string | HTMLDivElement): void
  • Gets or sets the parent div element reference or id for the Legend

    Returns string | HTMLDivElement

  • Gets or sets the parent div element reference or id for the Legend

    Parameters

    • value: string | HTMLDivElement

    Returns void

showCheckboxes

  • get showCheckboxes(): boolean
  • set showCheckboxes(value: boolean): void
  • Gets or sets whether series visibility checkboxes should be shown

    Returns boolean

  • Gets or sets whether series visibility checkboxes should be shown

    Parameters

    • value: boolean

    Returns void

showLegend

  • get showLegend(): boolean
  • set showLegend(value: boolean): void
  • When true, the legend is shown, else it is hidden

    Returns boolean

  • When true, the legend is shown, else it is hidden

    Parameters

    • value: boolean

    Returns void

showSeriesMarkers

  • get showSeriesMarkers(): boolean
  • set showSeriesMarkers(value: boolean): void
  • Gets or sets whether series markers should be shown

    Returns boolean

  • Gets or sets whether series markers should be shown

    Parameters

    • value: boolean

    Returns void

Methods

Protected addEventListeners

  • addEventListeners(): void

applyTheme

  • applyTheme(): void

Protected create

  • create(): void
  • Creates the legend in the DOM

    Returns void

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

Protected getInnerHTML

  • getInnerHTML(): string

getLegendHTML

getLegendItemHTML

Protected getParentDiv

  • getParentDiv(): HTMLDivElement

invalidateLegend

  • invalidateLegend(): void
  • Invalidate the legend, hinting a redraw is needed

    Returns void

isExternal

  • isExternal(): boolean
  • Gets if the Legend in placed externally

    Returns boolean

Protected notifyPropertyChanged

  • notifyPropertyChanged(): void

Protected removeEventListenerFromSeries

  • removeEventListenerFromSeries(renderableSeriesId: string): void

Protected removeEventListeners

  • removeEventListeners(): void

setInvalidateParentSurface

  • setInvalidateParentSurface(value: () => void): void

setParentSurface

setPieSegmentArray

  • setPieSegmentArray(pieSegmentArray: IPieSegment[]): void
  • Sets the array of pie segments to display in the legend

    remarks

    See SciChartPieSurface.pieSegments which is the source for this array

    Parameters

    Returns void

setRootDiv

  • setRootDiv(rootDivProperty: HTMLDivElement): void
  • Set the root div in HTML where the legend will be placed

    Parameters

    • rootDivProperty: HTMLDivElement

    Returns void

setSeriesViewRect

  • setSeriesViewRect(seriesViewRect: Rect): void
  • Set the series view rect - a rectangle defining where on the parent chart the legend is shown

    Parameters

    • seriesViewRect: Rect

    Returns void

update

  • update(): void

Generated using TypeDoc