Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plot

Abstract base class for plots

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

data

data: PlotData | any

id

id: string | number

options

options: PlotOptions

scale

scale: Scale

Accessors

offset

  • get offset(): number

Methods

plot

  • plot(ctx: CanvasRenderingContext2D, scale: Scale): void
  • Plot function should be overridden

    Parameters

    • ctx: CanvasRenderingContext2D
    • scale: Scale

    Returns void

setData

setOption

  • setOption(key: string, value: any): Plot

setOptions

  • setOptions(options: any): Plot
  • Set multiple options

    Parameters

    • options: any

      object containing options to set

    Returns Plot

setRange

Generated using TypeDoc