Options
All
  • Public
  • Public/Protected
  • All
Menu

VobcoCharts library, everything starts from here...

Hierarchy

  • Chart

Index

Constructors

constructor

  • Parameters

    • container: HTMLElement
    • ticker: string
    • settings: Settings
    • Default value containerFactory: IContainerFactory = new ContainerFactory()

    Returns Chart

Properties

canvas

canvas: HTMLCanvasElement

components

components: BaseComponent[] = []

Private container

container: Container

Dependency injection htmlContainer for charts

context

context: CanvasRenderingContext2D

data

data: Data

Data that will be displayed on chart

drawUtils

drawUtils: IDrawUtils

Private endIndex

endIndex: number

Protected eventOnceQueue

eventOnceQueue: object

Type declaration

  • [id: string]: Function[]

Protected eventQueue

eventQueue: object

Type declaration

  • [id: string]: Function[]

gridManager

gridManager: GridManager

htmlContainer

htmlContainer: HTMLElement

interval

interval: ChartInterval

isFullScreen

isFullScreen: boolean = false

mouseInput

mouseInput: MouseInput = null

name

name: string = ""

Private originalDimensions

originalDimensions: Dimensions = null

settings

settings: Settings

Private startIndex

startIndex: number = 0

Protected ticker

ticker: string

touchInput

touchInput: TouchInput = null

translator

translator: ITranslator

Private wm

wm: any = null

Methods

create

  • create(): void
  • Create chart

    Returns void

dataLoaded

  • dataLoaded(data: Data): void
  • Executed after data is loaded, this function is passed as callback to DataLoader

    Parameters

    Returns void

draw

  • draw(): void
  • Draw chart and all children

    Returns void

Protected drawComponent

  • Recursively draws a component and all component children

    Parameters

    Returns void

fire

  • fire(event: string, ...args: any[]): void
  • Fires event

    Parameters

    • event: string
    • Rest ...args: any[]

    Returns void

Protected fireAllFromQueue

  • fireAllFromQueue(queue: Function[], ...args: any[]): void
  • Parameters

    • queue: Function[]
    • Rest ...args: any[]

    Returns void

getEndIndex

  • getEndIndex(): number
  • Get index of last point displayed on chart

    Returns number

getHeightWithoutGrids

  • getHeightWithoutGrids(): number
  • Return total height without grids (navigation panel + margins)

    Returns number

getStartIndex

  • getStartIndex(): number
  • Get index of first point displayed on chart

    Returns number

getTicker

  • getTicker(): string
  • Get current ticker

    Returns string

Protected loadData

  • loadData(): void
  • Returns void

on

  • on(event: string, callback: Function, onlyOnce?: boolean): void
  • Assign function on event

    Parameters

    • event: string
    • callback: Function
    • Default value onlyOnce: boolean = false

    Returns void

Protected setCanvas

  • setCanvas(): void
  • Create canvas element

    Returns void

Protected setCanvasDimensions

  • setCanvasDimensions(): void
  • Returns void

setStartAndEndIndex

  • setStartAndEndIndex(start: number, end: number): void
  • Sets start and end point of displayed data on chart

    Parameters

    • start: number
    • end: number

    Returns void

setTicker

  • setTicker(ticker: string): void
  • Change current ticker

    Parameters

    • ticker: string

    Returns void

Private supportForOldBrowsers

  • supportForOldBrowsers(): void
  • Functions to help chart run in old brosers

    Returns void

updateTick

  • updateTick(date: Date, close: number, high?: number, low?: number, open?: number, volume?: any): void
  • Update last or add new tick data

    Parameters

    • date: Date
    • close: number
    • Default value high: number = null
    • Default value low: number = null
    • Default value open: number = null
    • Default value volume: any = null

    Returns void

Generated using TypeDoc