Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ChartInterval

Index

Constructors

constructor

Properties

Protected current

current: Interval

Currently displayed interval

Protected data

data: Data

Protected loaded

loaded: Interval

Loaded interval from which data was calculated

onIntervalChange

onIntervalChange: Function[] = []

Private settings

settings: Settings

Methods

Protected calculateIntervalData

  • calculateIntervalData(data: Data, i: number, tickLength: number): void
  • Parameters

    • data: Data
    • i: number
    • tickLength: number

    Returns void

Protected findOpen

  • findOpen(index: number, interval: number): number
  • Finds open price from Data starting from index in interval

    Parameters

    • index: number
    • interval: number

    Returns number

getCurrent

  • Get chart interval

    Returns Interval

getLoaded

  • Get loaded chart interval

    Returns Interval

Protected getWeek

  • getWeek(date: Date): number
  • Returns week in year

    Parameters

    • date: Date

    Returns number

setCurrent

  • Set chart interval

    Parameters

    Returns void

setDefault15minTo1HourIntervals

  • setDefault15minTo1HourIntervals(url: string, closeUrl?: string): void
  • Sets default intervals based on 15minutes data, on this way you have to provide url only for 15minutes, other intervals will be calculated automatically (15min, 30min, 45min and 1h)

    Parameters

    • url: string
    • Default value closeUrl: string = null

    Returns void

setDefault1hTo4HourIntervals

  • setDefault1hTo4HourIntervals(url: string, closeUrl?: string): void
  • Sets default intervals (1,2,3,4 days and week), on this way you have to provide url only for 1 day, other intervals will be calculated automatically

    Parameters

    • url: string
    • Default value closeUrl: string = null

    Returns void

setDefault1minTo15MinIntervals

  • setDefault1minTo15MinIntervals(url: string, closeUrl?: string): void
  • Sets default intervals based on 15minutes data, on this way you have to provide url only for 15minutes, other intervals will be calculated automatically (15min, 30min, 45min and 1h)

    Parameters

    • url: string
    • Default value closeUrl: string = null

    Returns void

setDefaultDayToWeekIntervals

  • setDefaultDayToWeekIntervals(url: string, closeUrl?: string): void
  • Sets default intervals (1,2,3,4 days and week), on this way you have to provide url only for 1 day, other intervals will be calculated automatically

    Parameters

    • url: string
    • Default value closeUrl: string = null

    Returns void

Generated using TypeDoc