Chart.js - v4.3.0

Enumerations

Classes

Interfaces

Type Aliases

Align

Ƭ Align: "start" | "center" | "end"

Defined in

types/index.d.ts:1762API - 图1 (opens new window)


AnimationOptions

Ƭ AnimationOptions<TType>: Object

Type parameters

NameType
TTypeextends ChartType

Type declaration

NameType
animationfalse | AnimationSpec<TType> & { onComplete?: (this: Chart, event: AnimationEvent) => void ; onProgress?: (this: Chart, event: AnimationEvent) => void }
animationsAnimationsSpec<TType>
transitionsTransitionsSpec<TType>

Defined in

types/index.d.ts:1715API - 图2 (opens new window)


AnimationSpec

Ƭ AnimationSpec<TType>: Object

Type parameters

NameType
TTypeextends ChartType

Type declaration

NameTypeDescription
delay?Scriptable<number, ScriptableContext<TType>>Delay before starting the animations. Default 0
duration?Scriptable<number, ScriptableContext<TType>>The number of milliseconds an animation takes. Default 1000
easing?Scriptable<EasingFunction, ScriptableContext<TType>>Easing function to use Default ‘easeOutQuart’
loop?Scriptable<boolean, ScriptableContext<TType>>If set to true, the animations loop endlessly. Default false

Defined in

types/index.d.ts:1659API - 图3 (opens new window)


AnimationsSpec

Ƭ AnimationsSpec<TType>: Object

Type parameters

NameType
TTypeextends ChartType

Index signature

▪ [name: string]: false | AnimationSpec<TType> & { fn: <T>(from: T, to: T, factor: number) => T ; from: Scriptable<Color | number | boolean, ScriptableContext<TType>> ; properties: string[] ; to: Scriptable<Color | number | boolean, ScriptableContext<TType>> ; type: "color" | "number" | "boolean" }

Defined in

types/index.d.ts:1684API - 图4 (opens new window)


BarController

Ƭ BarController: DatasetController

Defined in

types/index.d.ts:156API - 图5 (opens new window)

types/index.d.ts:157API - 图6 (opens new window)


BubbleController

Ƭ BubbleController: DatasetController

Defined in

types/index.d.ts:183API - 图7 (opens new window)

types/index.d.ts:184API - 图8 (opens new window)


CartesianTickOptions

Ƭ CartesianTickOptions: TickOptions & { align: Align | "inner" ; autoSkip: boolean ; autoSkipPadding: number ; crossAlign: "near" | "center" | "far" ; includeBounds: boolean ; labelOffset: number ; maxRotation: number ; maxTicksLimit: number ; minRotation: number ; mirror: boolean ; padding: number ; sampleSize: number }

Defined in

types/index.d.ts:3055API - 图9 (opens new window)


CategoryScale

Ƭ CategoryScale<O>: Scale<O>

Type parameters

NameType
Oextends CategoryScaleOptions = CategoryScaleOptions

Defined in

types/index.d.ts:3222API - 图10 (opens new window)

types/index.d.ts:3223API - 图11 (opens new window)


CategoryScaleOptions

Ƭ CategoryScaleOptions: Omit<CartesianScaleOptions, "min" | "max"> & { labels: string[] | string[][] ; max: string | number ; min: string | number }

Defined in

types/index.d.ts:3216API - 图12 (opens new window)


ChartComponentLike

Ƭ ChartComponentLike: ChartComponent | ChartComponent[] | { [key: string]: ChartComponent; } | Plugin | Plugin[]

Defined in

types/index.d.ts:1119API - 图13 (opens new window)


ChartDataset

Ƭ ChartDataset<TType, TData>: DeepPartial<{ [key in ChartType]: Object & ChartTypeRegistry[key][“datasetOptions”] }[TType]> & ChartDatasetProperties<TType, TData>

Type parameters

NameType
TTypeextends ChartType = ChartType
TDataDefaultDataPoint<TType>

Defined in

types/index.d.ts:3733API - 图14 (opens new window)


ChartDatasetCustomTypesPerDataset

Ƭ ChartDatasetCustomTypesPerDataset<TType, TData>: DeepPartial<{ [key in ChartType]: Object & ChartTypeRegistry[key][“datasetOptions”] }[TType]> & ChartDatasetPropertiesCustomTypesPerDataset<TType, TData>

Type parameters

NameType
TTypeextends ChartType = ChartType
TDataDefaultDataPoint<TType>

Defined in

types/index.d.ts:3740API - 图15 (opens new window)


ChartItem

Ƭ ChartItem: string | CanvasRenderingContext2D | HTMLCanvasElement | { canvas: HTMLCanvasElement } | ArrayLike<CanvasRenderingContext2D | HTMLCanvasElement>

Defined in

types/index.d.ts:563API - 图16 (opens new window)


ChartMeta

Ƭ ChartMeta<TType, TElement, TDatasetElement>: DeepPartial<{ [key in ChartType]: ChartTypeRegistry[key][“metaExtensions”] }[TType]> & ChartMetaCommon<TElement, TDatasetElement>

Type parameters

NameType
TTypeextends ChartType = ChartType
TElementextends Element = Element
TDatasetElementextends Element = Element

Defined in

types/index.d.ts:467API - 图17 (opens new window)


ChartOptions

Ƭ ChartOptions<TType>: DeepPartial<CoreChartOptions<TType> & ElementChartOptions<TType> & PluginChartOptions<TType> & DatasetChartOptions<TType> & ScaleChartOptions<TType> & ChartTypeRegistry[TType]["chartOptions"]>

Type parameters

NameType
TTypeextends ChartType = ChartType

Defined in

types/index.d.ts:3710API - 图18 (opens new window)


ChartType

Ƭ ChartType: keyof ChartTypeRegistry

Defined in

types/index.d.ts:3689API - 图19 (opens new window)


Color

Ƭ Color: string | CanvasGradient | CanvasPattern

Defined in

types/color.d.ts:1API - 图20 (opens new window)


DatasetChartOptions

Ƭ DatasetChartOptions<TType>: { [key in TType]: Object }

Type parameters

NameType
TTypeextends ChartType = ChartType

Defined in

types/index.d.ts:3698API - 图21 (opens new window)


DecimationOptions

Ƭ DecimationOptions: LttbDecimationOptions | MinMaxDecimationOptions

Defined in

types/index.d.ts:2189API - 图22 (opens new window)


DefaultDataPoint

Ƭ DefaultDataPoint<TType>: DistributiveArray<ChartTypeRegistry[TType]["defaultDataPoint"]>

Type parameters

NameType
TTypeextends ChartType

Defined in

types/index.d.ts:3719API - 图23 (opens new window)


DoughnutDataPoint

Ƭ DoughnutDataPoint: number

Defined in

types/index.d.ts:338API - 图24 (opens new window)


EasingFunction

Ƭ EasingFunction: keyof typeof effects

Defined in

helpers/helpers.easing.ts:122API - 图25 (opens new window)


ElementChartOptions

Ƭ ElementChartOptions<TType>: Object

Type parameters

NameType
TTypeextends ChartType = ChartType

Type declaration

NameType
elementsElementOptionsByType<TType>

Defined in

types/index.d.ts:2105API - 图26 (opens new window)


FillTarget

Ƭ FillTarget: number | string | { value: number } | "start" | "end" | "origin" | "stack" | "shape" | boolean

Defined in

types/index.d.ts:2197API - 图27 (opens new window)


InteractionAxis

Ƭ InteractionAxis: "x" | "y" | "xy" | "r"

Defined in

types/index.d.ts:1531API - 图28 (opens new window)


InteractionMode

Ƭ InteractionMode: keyof InteractionModeMap

Defined in

types/index.d.ts:761API - 图29 (opens new window)


InteractionModeFunction

Ƭ InteractionModeFunction: (chart: Chart, e: ChartEvent, options: InteractionOptions, useFinalPosition?: boolean) => InteractionItem[]

Type declaration

▸ (chart, e, options, useFinalPosition?): InteractionItem[]

Parameters
NameType
chartChart
eChartEvent
optionsInteractionOptions
useFinalPosition?boolean
Returns

InteractionItem[]

Defined in

types/index.d.ts:723API - 图30 (opens new window)


LayoutPosition

Ƭ LayoutPosition: "left" | "top" | "right" | "bottom" | "center" | "chartArea" | { [scaleId: string]: number; }

Defined in

types/layout.d.ts:3API - 图31 (opens new window)


LineController

Ƭ LineController: DatasetController

Defined in

types/index.d.ts:229API - 图32 (opens new window)

types/index.d.ts:230API - 图33 (opens new window)


LinearScale

Ƭ LinearScale<O>: Scale<O>

Type parameters

NameType
Oextends LinearScaleOptions = LinearScaleOptions

Defined in

types/index.d.ts:3271API - 图34 (opens new window)

types/index.d.ts:3272API - 图35 (opens new window)


LinearScaleOptions

Ƭ LinearScaleOptions: CartesianScaleOptions & { beginAtZero: boolean ; grace?: string | number ; suggestedMax?: number ; suggestedMin?: number ; ticks: { count: number ; format: Intl.NumberFormatOptions ; precision: number ; stepSize: number } }

Defined in

types/index.d.ts:3228API - 图36 (opens new window)


LogarithmicScale

Ƭ LogarithmicScale<O>: Scale<O>

Type parameters

NameType
Oextends LogarithmicScaleOptions = LogarithmicScaleOptions

Defined in

types/index.d.ts:3295API - 图37 (opens new window)

types/index.d.ts:3296API - 图38 (opens new window)


LogarithmicScaleOptions

Ƭ LogarithmicScaleOptions: CartesianScaleOptions & { suggestedMax?: number ; suggestedMin?: number ; ticks: { format: Intl.NumberFormatOptions } }

Defined in

types/index.d.ts:3277API - 图39 (opens new window)


Overrides

Ƭ Overrides: { [key in ChartType]: CoreChartOptions<key> & ElementChartOptions<key> & PluginChartOptions<key> & DatasetChartOptions<ChartType> & ScaleChartOptions<key> & ChartTypeRegistry[key][“chartOptions”] }

Defined in

types/index.d.ts:700API - 图40 (opens new window)


ParsedDataType

Ƭ ParsedDataType<TType>: ChartTypeRegistry[TType]["parsedDataType"]

Type parameters

NameType
TTypeextends ChartType = ChartType

Defined in

types/index.d.ts:3721API - 图41 (opens new window)


PieAnimationOptions

Ƭ PieAnimationOptions: DoughnutAnimationOptions

Defined in

types/index.d.ts:361API - 图42 (opens new window)


PieController

Ƭ PieController: DoughnutController

Defined in

types/index.d.ts:366API - 图43 (opens new window)

types/index.d.ts:367API - 图44 (opens new window)


PieControllerChartOptions

Ƭ PieControllerChartOptions: DoughnutControllerChartOptions

Defined in

types/index.d.ts:360API - 图45 (opens new window)


PieControllerDatasetOptions

Ƭ PieControllerDatasetOptions: DoughnutControllerDatasetOptions

Defined in

types/index.d.ts:359API - 图46 (opens new window)


PieDataPoint

Ƭ PieDataPoint: DoughnutDataPoint

Defined in

types/index.d.ts:363API - 图47 (opens new window)


PieMetaExtensions

Ƭ PieMetaExtensions: DoughnutMetaExtensions

Defined in

types/index.d.ts:364API - 图48 (opens new window)


PointProps

Ƭ PointProps: Point

Defined in

elements/element.point.ts:18API - 图49 (opens new window)


PointStyle

Ƭ PointStyle: "circle" | "cross" | "crossRot" | "dash" | "line" | "rect" | "rectRounded" | "rectRot" | "star" | "triangle" | false | HTMLImageElement | HTMLCanvasElement

Defined in

types/index.d.ts:1937API - 图50 (opens new window)


PolarAreaAnimationOptions

Ƭ PolarAreaAnimationOptions: DoughnutAnimationOptions

Defined in

types/index.d.ts:380API - 图51 (opens new window)


RadarController

Ƭ RadarController: DatasetController

Defined in

types/index.d.ts:427API - 图52 (opens new window)

types/index.d.ts:428API - 图53 (opens new window)


RadarControllerChartOptions

Ƭ RadarControllerChartOptions: LineControllerChartOptions

Defined in

types/index.d.ts:425API - 图54 (opens new window)


RadialLinearScaleOptions

Ƭ RadialLinearScaleOptions: CoreScaleOptions & { angleLines: { borderDash: Scriptable<number[], ScriptableScaleContext> ; borderDashOffset: Scriptable<number, ScriptableScaleContext> ; color: Scriptable<Color, ScriptableScaleContext> ; display: boolean ; lineWidth: Scriptable<number, ScriptableScaleContext> } ; animate: boolean ; backgroundColor: Color ; beginAtZero: boolean ; grid: Partial<GridLineOptions> ; max: number ; min: number ; pointLabels: { backdropColor: Scriptable<Color, ScriptableScalePointLabelContext> ; backdropPadding: Scriptable<number | ChartArea, ScriptableScalePointLabelContext> ; borderRadius: Scriptable<number | BorderRadius, ScriptableScalePointLabelContext> ; callback: (label: string, index: number) => string | string[] | number | number[] ; centerPointLabels: boolean ; color: Scriptable<Color, ScriptableScalePointLabelContext> ; display: boolean | "auto" ; font: ScriptableAndScriptableOptions<Partial<FontSpec>, ScriptableScalePointLabelContext> ; padding: Scriptable<number, ScriptableScalePointLabelContext> } ; startAngle: number ; suggestedMax: number ; suggestedMin: number ; ticks: RadialTickOptions }

Defined in

types/index.d.ts:3431API - 图55 (opens new window)


RadialTickOptions

Ƭ RadialTickOptions: TickOptions & { count: number ; format: Intl.NumberFormatOptions ; maxTicksLimit: number ; precision: number ; stepSize: number }

Defined in

types/index.d.ts:3403API - 图56 (opens new window)


ScaleChartOptions

Ƭ ScaleChartOptions<TType>: Object

Type parameters

NameType
TTypeextends ChartType = ChartType

Type declaration

NameType
scales{ [key: string]: ScaleOptionsByType<ChartTypeRegistry[TType][“scales”]>; }

Defined in

types/index.d.ts:3704API - 图57 (opens new window)


ScaleOptions

Ƭ ScaleOptions<TScale>: DeepPartial<ScaleOptionsByType<TScale>>

Type parameters

NameType
TScaleextends ScaleType = ScaleType

Defined in

types/index.d.ts:3696API - 图58 (opens new window)


ScaleOptionsByType

Ƭ ScaleOptionsByType<TScale>: { [key in ScaleType]: Object & ScaleTypeRegistry[key][“options”] }[TScale]

Type parameters

NameType
TScaleextends ScaleType = ScaleType

Defined in

types/index.d.ts:3691API - 图59 (opens new window)


ScaleType

Ƭ ScaleType: keyof ScaleTypeRegistry

Defined in

types/index.d.ts:3588API - 图60 (opens new window)


ScatterController

Ƭ ScatterController: LineController

Defined in

types/index.d.ts:241API - 图61 (opens new window)

types/index.d.ts:242API - 图62 (opens new window)


ScatterControllerChartOptions

Ƭ ScatterControllerChartOptions: LineControllerChartOptions

Defined in

types/index.d.ts:239API - 图63 (opens new window)


ScatterControllerDatasetOptions

Ƭ ScatterControllerDatasetOptions: LineControllerDatasetOptions

Defined in

types/index.d.ts:235API - 图64 (opens new window)


ScatterDataPoint

Ƭ ScatterDataPoint: Point

Defined in

types/index.d.ts:237API - 图65 (opens new window)


Scriptable

Ƭ Scriptable<T, TContext>: T | (ctx: TContext, options: AnyObject) => T | undefined

Type parameters

Name
T
TContext

Defined in

types/index.d.ts:44API - 图66 (opens new window)


ScriptableAndArray

Ƭ ScriptableAndArray<T, TContext>: readonly T[] | Scriptable<T, TContext>

Type parameters

Name
T
TContext

Defined in

types/index.d.ts:47API - 图67 (opens new window)


ScriptableAndArrayOptions

Ƭ ScriptableAndArrayOptions<T, TContext>: { [P in keyof T]: ScriptableAndArray<T[P], TContext> }

Type parameters

Name
T
TContext

Defined in

types/index.d.ts:48API - 图68 (opens new window)


ScriptableAndScriptableOptions

Ƭ ScriptableAndScriptableOptions<T, TContext>: Scriptable<T, TContext> | ScriptableOptions<T, TContext>

Type parameters

Name
T
TContext

Defined in

types/index.d.ts:46API - 图69 (opens new window)


ScriptableOptions

Ƭ ScriptableOptions<T, TContext>: { [P in keyof T]: Scriptable<T[P], TContext> }

Type parameters

Name
T
TContext

Defined in

types/index.d.ts:45API - 图70 (opens new window)


TextAlign

Ƭ TextAlign: "left" | "center" | "right"

Defined in

types/index.d.ts:1761API - 图71 (opens new window)


TimeScaleOptions

Ƭ TimeScaleOptions: Omit<CartesianScaleOptions, "min" | "max"> & { adapters: { date: unknown } ; bounds: "ticks" | "data" ; max: string | number ; min: string | number ; offsetAfterAutoskip: boolean ; suggestedMax: string | number ; suggestedMin: string | number ; ticks: { source: "labels" | "auto" | "data" ; stepSize: number } ; time: { displayFormats: { [key: string]: string; } ; isoWeekday: boolean | number ; minUnit: TimeUnit ; parser: string | (v: unknown) => number ; round: false | TimeUnit ; tooltipFormat: string ; unit: false | TimeUnit } }

Defined in

types/index.d.ts:3301API - 图72 (opens new window)


TimeSeriesScale

Ƭ TimeSeriesScale<O>: TimeScale<O>

Type parameters

NameType
Oextends TimeScaleOptions = TimeScaleOptions

Defined in

types/index.d.ts:3397API - 图73 (opens new window)

types/index.d.ts:3398API - 图74 (opens new window)


TooltipPositioner

Ƭ TooltipPositioner: keyof TooltipPositionerMap

Defined in

types/index.d.ts:2615API - 图75 (opens new window)


TooltipPositionerFunction

Ƭ TooltipPositionerFunction<TType>: (this: TooltipModel<TType>, items: readonly ActiveElement[], eventPosition: Point) => TooltipPosition | false

Type parameters

NameType
TTypeextends ChartType

Type declaration

▸ (this, items, eventPosition): TooltipPosition | false

Parameters
NameType
thisTooltipModel<TType>
itemsreadonly ActiveElement[]
eventPositionPoint
Returns

TooltipPosition | false

Defined in

types/index.d.ts:2604API - 图76 (opens new window)


TooltipXAlignment

Ƭ TooltipXAlignment: "left" | "center" | "right"

Defined in

types/index.d.ts:2515API - 图77 (opens new window)


TooltipYAlignment

Ƭ TooltipYAlignment: "top" | "center" | "bottom"

Defined in

types/index.d.ts:2516API - 图78 (opens new window)


TransitionSpec

Ƭ TransitionSpec<TType>: Object

Type parameters

NameType
TTypeextends ChartType

Type declaration

NameType
animationAnimationSpec<TType>
animationsAnimationsSpec<TType>

Defined in

types/index.d.ts:1706API - 图79 (opens new window)


TransitionsSpec

Ƭ TransitionsSpec<TType>: Object

Type parameters

NameType
TTypeextends ChartType

Index signature

▪ [mode: string]: TransitionSpec<TType>

Defined in

types/index.d.ts:1711API - 图80 (opens new window)


UpdateMode

Ƭ UpdateMode: keyof typeof UpdateModeEnum

Defined in

types/index.d.ts:580API - 图81 (opens new window)

Variables

BarController

BarController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => BarController

Defined in

types/index.d.ts:156API - 图82 (opens new window)

types/index.d.ts:157API - 图83 (opens new window)


BarElement

BarElement: ChartComponent & (cfg: AnyObject) => BarElement<BarProps, BarOptions>

Defined in

types/index.d.ts:2088API - 图84 (opens new window)

types/index.d.ts:2093API - 图85 (opens new window)


BubbleController

BubbleController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => BubbleController

Defined in

types/index.d.ts:183API - 图86 (opens new window)

types/index.d.ts:184API - 图87 (opens new window)


CategoryScale

CategoryScale: ChartComponent & <O>(cfg: AnyObject) => CategoryScale<O>

Defined in

types/index.d.ts:3222API - 图88 (opens new window)

types/index.d.ts:3223API - 图89 (opens new window)


Decimation

Const Decimation: Plugin

Defined in

types/index.d.ts:2169API - 图90 (opens new window)


DoughnutController

DoughnutController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => DoughnutController

Defined in

types/index.d.ts:340API - 图91 (opens new window)

types/index.d.ts:350API - 图92 (opens new window)


Filler

Const Filler: Plugin

Defined in

types/index.d.ts:2191API - 图93 (opens new window)


Interaction

Const Interaction: Object

Type declaration

NameType
modesInteractionModeMap
evaluateInteractionItems(chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, axis: InteractionAxis, position: Point, handler: (element: default<AnyObject, AnyObject> & VisualElement, datasetIndex: number, index: number) => void, intersect?: boolean) => InteractionItem[]

Defined in

types/index.d.ts:763API - 图94 (opens new window)


Legend

Const Legend: Plugin

Defined in

types/index.d.ts:2221API - 图95 (opens new window)


LineController

LineController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => LineController

Defined in

types/index.d.ts:229API - 图96 (opens new window)

types/index.d.ts:230API - 图97 (opens new window)


LineElement

LineElement: ChartComponent & (cfg: AnyObject) => LineElement<LineProps, LineOptions>

Defined in

types/index.d.ts:1919API - 图98 (opens new window)

types/index.d.ts:1932API - 图99 (opens new window)


LinearScale

LinearScale: ChartComponent & <O>(cfg: AnyObject) => LinearScale<O>

Defined in

types/index.d.ts:3271API - 图100 (opens new window)

types/index.d.ts:3272API - 图101 (opens new window)


LogarithmicScale

LogarithmicScale: ChartComponent & <O>(cfg: AnyObject) => LogarithmicScale<O>

Defined in

types/index.d.ts:3295API - 图102 (opens new window)

types/index.d.ts:3296API - 图103 (opens new window)


PieController

PieController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => DoughnutController

Defined in

types/index.d.ts:366API - 图104 (opens new window)

types/index.d.ts:367API - 图105 (opens new window)


PolarAreaController

PolarAreaController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => PolarAreaController

Defined in

types/index.d.ts:392API - 图106 (opens new window)

types/index.d.ts:395API - 图107 (opens new window)


RadarController

RadarController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => RadarController

Defined in

types/index.d.ts:427API - 图108 (opens new window)

types/index.d.ts:428API - 图109 (opens new window)


RadialLinearScale

RadialLinearScale: ChartComponent & <O>(cfg: AnyObject) => RadialLinearScale<O>

Defined in

types/index.d.ts:3546API - 图110 (opens new window)

types/index.d.ts:3556API - 图111 (opens new window)


ScatterController

ScatterController: ChartComponent & (chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, datasetIndex: number) => LineController

Defined in

types/index.d.ts:241API - 图112 (opens new window)

types/index.d.ts:242API - 图113 (opens new window)


SubTitle

Const SubTitle: Plugin

Defined in

types/index.d.ts:2473API - 图114 (opens new window)


Ticks

Const Ticks: Object

Type declaration

NameType
formatters{ logarithmic: (tickValue: number, index: number, ticks: { value: number }[]) => string ; numeric: (tickValue: number, index: number, ticks: { value: number }[]) => string ; values: (value: unknown) => string | string[] }
formatters.logarithmic[object Object]
formatters.numeric[object Object]
formatters.values[object Object]

Defined in

types/index.d.ts:1465API - 图115 (opens new window)


TimeScale

TimeScale: ChartComponent & <O>(cfg: AnyObject) => TimeScale<O>

Defined in

types/index.d.ts:3385API - 图116 (opens new window)

types/index.d.ts:3392API - 图117 (opens new window)


TimeSeriesScale

TimeSeriesScale: ChartComponent & <O>(cfg: AnyObject) => TimeSeriesScale<O>

Defined in

types/index.d.ts:3397API - 图118 (opens new window)

types/index.d.ts:3398API - 图119 (opens new window)


Title

Const Title: Plugin

Defined in

types/index.d.ts:2474API - 图120 (opens new window)


Tooltip

Tooltip: Tooltip

Defined in

types/index.d.ts:2617API - 图121 (opens new window)

types/index.d.ts:2621API - 图122 (opens new window)


defaults

Const defaults: Defaults

Defined in

types/index.d.ts:710API - 图123 (opens new window)


layouts

Const layouts: Object

Type declaration

NameType
addBox(chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, item: LayoutItem) => void
configure(chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, item: LayoutItem, options: { fullSize?: number ; position?: LayoutPosition ; weight?: number }) => void
removeBox(chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, layoutItem: LayoutItem) => void
update(chart: Chart<keyof ChartTypeRegistry, (number | [number, number] | Point | BubbleDataPoint)[], unknown>, width: number, height: number) => void

Defined in

types/index.d.ts:778API - 图124 (opens new window)


registerables

Const registerables: readonly ChartComponentLike[]

Defined in

types/index.d.ts:561API - 图125 (opens new window)


registry

Const registry: Registry

Defined in

types/index.d.ts:1145API - 图126 (opens new window)