Class Chart

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(canvas: string): Chart

Parameters

  • canvas: string

Returns

Chart

Properties

public axes: IAxes

public bounds: IRectangle

public canvas: HTMLCanvasElement

public chartRect: IRectangle

public footer: ITitle

public legend: ILegend

public palette: IPalette

public panel: IPanel

public scroll: IScroll

public series: ISeriesList

public title: ITitle

public tools: ITools

public walls: IWalls

public zoom: IZoom

Methods

public addSeries(series: ISeries): ISeries

Parameters

Returns

ISeries

public draw(context?: CanvasRenderingContext2D): any

Parameters

  • context?: CanvasRenderingContext2D optional

Returns

any

public getSeries(index: number): ISeries

Parameters

  • index: number

Returns

ISeries

public removeSeries(series: ISeries)

Parameters

public toImage(image: HTMLImageElement, format: string, quality: number)

Parameters

  • image: HTMLImageElement
  • format: string
  • quality: number