Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • export=

Index

Constructors

constructor

  • new export=(context: string | HTMLCanvasElement | CanvasRenderingContext2D | ArrayLike<HTMLCanvasElement | CanvasRenderingContext2D>, options: ChartConfiguration): export=
  • Parameters

    • context: string | HTMLCanvasElement | CanvasRenderingContext2D | ArrayLike<HTMLCanvasElement | CanvasRenderingContext2D>
    • options: ChartConfiguration

    Returns export=

Properties

aspectRatio

aspectRatio: null | number

canvas

canvas: null | HTMLCanvasElement

chartArea

chartArea: ChartArea

clear

clear: () => export=

Type declaration

config

ctx

ctx: null | CanvasRenderingContext2D

data

data: ChartData

destroy

destroy: () => {}

Type declaration

    • (): {}
    • Returns {}

generateLegend

generateLegend: () => {}

Type declaration

    • (): {}
    • Returns {}

getDatasetAtEvent

getDatasetAtEvent: (e: any) => {}[]

Type declaration

    • (e: any): {}[]
    • Parameters

      • e: any

      Returns {}[]

getDatasetMeta

getDatasetMeta: (index: number) => Meta

Type declaration

    • (index: number): Meta
    • Parameters

      • index: number

      Returns Meta

getElementAtEvent

getElementAtEvent: (e: any) => [{}]

Type declaration

    • (e: any): [{}]
    • Parameters

      • e: any

      Returns [{}]

getElementsAtEvent

getElementsAtEvent: (e: any) => {}[]

Type declaration

    • (e: any): {}[]
    • Parameters

      • e: any

      Returns {}[]

getElementsAtXAxis

getElementsAtXAxis: (e: any) => {}[]

Type declaration

    • (e: any): {}[]
    • Parameters

      • e: any

      Returns {}[]

getVisibleDatasetCount

getVisibleDatasetCount: () => number

Type declaration

    • (): number
    • Returns number

height

height: null | number

isDatasetVisible

isDatasetVisible: (datasetIndex: number) => boolean

Type declaration

    • (datasetIndex: number): boolean
    • Parameters

      • datasetIndex: number

      Returns boolean

options

options: ChartOptions

render

render: (__namedParameters?: ChartRenderProps) => {}

Type declaration

resize

resize: () => export=

Type declaration

setDatasetVisibility

setDatasetVisibility: (datasetIndex: number, visible: boolean) => void

Type declaration

    • (datasetIndex: number, visible: boolean): void
    • Parameters

      • datasetIndex: number
      • visible: boolean

      Returns void

stop

stop: () => export=

Type declaration

toBase64Image

toBase64Image: () => string

Type declaration

    • (): string
    • Returns string

update

update: (__namedParameters?: ChartUpdateProps) => {}

Type declaration

width

width: null | number

Readonly Static Chart

Chart: typeof export=

Static Tooltip

Static controllers

controllers: {}

Type declaration

  • [key: string]: any

Static defaults

defaults: { global: ChartOptions & ChartFontOptions & { tooltips: ChartTooltipOptions } }

Type declaration

Static helpers

helpers: {}

Type declaration

  • [key: string]: any

Readonly Static instances

instances: {}

Type declaration

Static platform

platform: { disableCSSInjection: boolean }

Type declaration

  • disableCSSInjection: boolean

Static pluginService

pluginService: PluginServiceStatic

Static plugins

plugins: PluginServiceStatic

Static scaleService

scaleService: { updateScaleDefaults: (type: ScaleType, updates: ChartScales) => void }

Type declaration

Generated using TypeDoc