Class ChartWrapper

Index

Constructor methods

Methods

Constructor methods

constructor(spec?: ChartSpecs): ChartWrapper

Parameters

Returns

ChartWrapper

Methods

public clone(): ChartWrapper

Returns

ChartWrapper

public draw(container_ref?: HTMLElement)

Parameters

  • container_ref?: HTMLElement optional

public getChart(): any

Returns

any

public getChartName(): string

Returns

string

public getChartType(): string

Returns

string

public getContainerId(): string

Returns

string

public getDataSourceUrl(): string

Returns

string

public getDataTable(): DataTable

Returns

DataTable

public getOption(key: string, default_val?: string): any

Parameters

  • key: string
  • default_val?: string optional

Returns

any

public getOptions(): Object

Returns

Object

public getQuery(): string

Returns

string

public getRefreshInterval(): number

Returns

number

public getView(): any

Returns

any

public setChartName(name: string)

Parameters

  • name: string

public setChartType(type: string)

Parameters

  • type: string

public setContainerId(id: string)

Parameters

  • id: string

public setDataSourceUrl(url: string)

Parameters

  • url: string

public setDataTable(table: DataTable)

Parameters

public setOption(key: string, value: any)

Parameters

  • key: string
  • value: any

public setOptions(options: Object)

Parameters

  • options: Object

public setQuery(query: string)

Parameters

  • query: string

public setRefreshInterval(interval: number)

Parameters

  • interval: number

public setView(view_spec: DataView)

Parameters

public toJSON(): string

Returns

string