Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • XAxis

Index

Constructors

constructor

  • Parameters

    • data: Data
    • formatters: Formatters
    • displayEvery: number
    • scaleX: number

    Returns XAxis

Properties

Protected currentText

currentText: string

Value of current date that should be drawn next

Protected data

data: Data

Data

Protected displayEveryNIndex

displayEveryNIndex: number

Protected displayEveryType

displayEveryType: IntervalType = null

on x axis time value will be printed every

Protected displayEveryValue

displayEveryValue: number

Protected formatters

formatters: Formatters

Protected scaleX

scaleX: any = null

Protected xLastIndexDrawn

xLastIndexDrawn: number = -1

index of last date that was written on x os

Methods

getCurrentText

  • getCurrentText(): string
  • Returns string

setDisplayEvery

  • setDisplayEvery(index: number): void
  • Parameters

    • index: number

    Returns void

shouldDrawOnY

  • shouldDrawOnY(index: number): boolean
  • Checks if next vertical grid line should be drawn

    Parameters

    • index: number

      current index

    Returns boolean

Generated using TypeDoc