Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chartjs/Chart.js
/ functions
Functions
1,573 in github.com/chartjs/Chart.js
⨍
Functions
1,573
◇
Types & classes
306
Method
acquireContext
(item)
src/platform/platform.basic.js:14
Method
acquireContext
* Called at chart construction time, returns a context2d instance implementing * the [W3C Canvas 2D Context API standard]{@link https://www.w3.org/T
src/platform/platform.base.ts:16
Function
activeElements
(tooltip: Tooltip)
test/integration/typescript-node/src/index.ts:40
Method
add
(...args: any[])
src/core/core.registry.ts:28
Method
add
* Add animations * @param {Chart} chart * @param {Animation[]} items - animations
src/core/core.animator.js:144
Method
add
()
src/core/core.adapters.ts:113
Function
addBox
* Register a box to a chart. * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title. * @param chart - the ch
src/core/core.layouts.ts:322
Method
addControllers
(...args: (typeof DatasetController)[])
src/core/core.registry.ts:36
Method
addElements
(...args: (typeof Element)[])
src/core/core.registry.ts:40
Method
addEventListener
(_chart: Chart, _type: string, _listener: Function)
src/platform/platform.base.ts:39
Function
addNormalRectPath
* Add a path of a rectangle to the current sub-path * @param ctx Context * @param rect Bounding rect
src/elements/element.bar.ts:133
Method
addPlugins
(...args: any[])
src/core/core.registry.ts:44
Method
addScales
(...args: (typeof Scale)[])
src/core/core.registry.ts:48
Method
afterAutoSkip
()
src/scales/scale.time.js:406
Function
afterBody
()
test/specs/plugin.tooltip.spec.js:2504
Method
afterBody
(this: Model, tooltipItems: Item[])
src/types/index.ts:2761
Method
afterBuildTicks
* @desc Called after scale has build its ticks. This hook is called separately for each scale in the chart. * @param {Chart} chart - The chart inst
src/types/index.ts:1027
Method
afterBuildTicks
* Callback that runs after ticks are created. Useful for filtering ticks.
src/types/index.ts:1277
Method
afterBuildTicks
()
src/types/index.ts:1407
Method
afterCalculateLabelRotation
* Callback that runs after tick rotation is determined.
src/types/index.ts:1293
Method
afterCalculateLabelRotation
()
src/types/index.ts:1413
Method
afterDataLimits
* @desc Called after scale data limits are calculated. This hook is called separately for each scale in the chart. * @param {Chart} chart - The cha
src/types/index.ts:1011
Method
afterDataLimits
* Callback that runs after data limits are determined.
src/types/index.ts:1269
Method
afterDataLimits
()
src/types/index.ts:1404
Method
afterDatasetDraw
* @desc Called after the `chart` datasets at the given `args.index` have been drawn * (datasets are drawn in the reverse order). Note that this hoo
src/types/index.ts:1109
Method
afterDatasetUpdate
* @desc Called after the `chart` datasets at the given `args.index` has been updated. Note * that this hook will not be called if the datasets upda
src/types/index.ts:986
Method
afterDatasetsDraw
* @desc Called after the `chart` datasets have been drawn. Note that this hook * will not be called if the datasets drawing has been previously can
src/types/index.ts:1086
Function
afterDatasetsUpdate
(chart, _args, options)
src/plugins/plugin.filler/index.ts:15
Method
afterDatasetsUpdate
* @desc Called after the `chart` datasets have been updated. Note that this hook * will not be called if the datasets update has been previously ca
src/types/index.ts:963
Method
afterDestroy
* Called after the chart has been destroyed. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @par
src/types/index.ts:1155
Function
afterDraw
()
test/specs/core.animator.spec.js:33
Function
afterDraw
(chart)
test/fixtures/core.scale/ticks/rotated-multi-line.js:31
Function
afterDraw
(chart)
test/fixtures/core.scale/ticks/rotated-long.js:31
Function
afterDraw
(chart)
test/fixtures/plugin.legend/horizontal-rtl-hitbox.js:30
Function
afterDraw
(chart)
src/plugins/plugin.tooltip.js:1332
Method
afterDraw
* @desc Called after the `chart` has been drawn. Note that this hook will not be called * if the drawing has been previously cancelled. * @param
src/types/index.ts:1069
Function
afterEvent
(chart, args)
src/plugins/plugin.tooltip.js:1350
Method
afterEvent
* @desc Called after the `event` has been consumed. Note that this hook * will not be called if the `event` has been previously discarded. * @pa
src/types/index.ts:1133
Method
afterFit
* Callback that runs after the scale fits to the canvas.
src/types/index.ts:1301
Method
afterFit
()
src/types/index.ts:1416
Function
afterFooter
()
test/specs/plugin.tooltip.spec.js:2513
Method
afterFooter
(this: Model, tooltipItems: Item[])
src/types/index.ts:2773
Function
afterInit
(chart)
test/fixtures/controller.doughnut/doughnut-hidden.js:36
Function
afterInit
(chart)
test/fixtures/controller.doughnut/doughnut-animation.js:45
Function
afterInit
(chart, _args, options)
src/plugins/plugin.tooltip.js:1308
Method
afterInit
* @desc Called after `chart` has been initialized and before the first update. * @param {Chart} chart - The chart instance. * @param {object} ar
src/types/index.ts:907
Function
afterLabel
()
test/specs/plugin.tooltip.spec.js:2501
Method
afterLabel
(this: Model, tooltipItem: Item)
src/types/index.ts:2744
Method
afterLabel
(this: Model, tooltipItem: Item)
src/types/index.ts:2765
Function
afterLayout
()
test/specs/plugin.legend.spec.js:1125
Method
afterLayout
* @desc Called after the `chart` has been laid out. Note that this hook will not * be called if the layout update has been previously cancelled.
src/types/index.ts:1035
Method
afterRegister
()
src/types/index.ts:1603
Method
afterRender
* @desc Called after the `chart` has been fully rendered (and animation completed). Note * that this hook will not be called if the rendering has b
src/types/index.ts:1052
Method
afterSetDimensions
* Callback that runs after dimensions are set.
src/types/index.ts:1261
Method
afterSetDimensions
()
src/types/index.ts:1401
Method
afterTickToLabelConversion
* Callback that runs after ticks are converted into strings.
src/types/index.ts:1285
Method
afterTickToLabelConversion
()
src/types/index.ts:1410
Function
afterTitle
()
test/specs/plugin.tooltip.spec.js:2489
Method
afterTitle
(this: Model, tooltipItems: Item[])
src/types/index.ts:2758
Method
afterTooltipDraw
* @desc Called after drawing the `tooltip`. Note that this hook will not * be called if the tooltip drawing has been previously cancelled. * @pa
src/types/index.ts:2798
Method
afterUnregister
()
src/types/index.ts:1605
Function
afterUpdate
(chart)
src/plugins/plugin.legend.ts:814
Function
afterUpdate
(chart)
src/plugins/plugin.tooltip.js:1320
Method
afterUpdate
* @desc Called after `chart` has been updated and before rendering. Note that this * hook will not be called if the chart update has been previousl
src/types/index.ts:926
Method
afterUpdate
* Callback that runs at the end of the update process.
src/types/index.ts:1305
Method
afterUpdate
()
src/types/index.ts:1398
Method
alignBorderValue
(pixel)
src/core/core.scale.js:1036
Function
applyAnimationsDefaults
(defaults: Defaults)
src/core/core.animations.defaults.ts:6
Function
applyLayoutsDefaults
(defaults: Defaults)
src/core/core.layouts.defaults.ts:3
Function
applyScaleDefaults
(defaults)
src/core/core.scale.defaults.js:3
Method
aspectRatio
()
src/core/core.controller.js:202
Method
attached
()
src/core/core.controller.js:1105
Function
average
* Average mode places the tooltip at the average position of the elements shown
src/plugins/plugin.tooltip.js:55
Function
beforeBody
()
test/specs/plugin.tooltip.spec.js:2492
Method
beforeBody
(this: Model, tooltipItems: Item[])
src/types/index.ts:2760
Method
beforeBuildTicks
* @desc Called before scale builds its ticks. This hook is called separately for each scale in the chart. * @param {Chart} chart - The chart instan
src/types/index.ts:1019
Method
beforeBuildTicks
* Callback that runs before ticks are created.
src/types/index.ts:1273
Method
beforeBuildTicks
()
src/types/index.ts:1405
Method
beforeCalculateLabelRotation
* Callback that runs before tick rotation is determined.
src/types/index.ts:1289
Method
beforeCalculateLabelRotation
()
src/types/index.ts:1411
Method
beforeDataLimits
* @desc Called before scale data limits are calculated. This hook is called separately for each scale in the chart. * @param {Chart} chart - The ch
src/types/index.ts:1003
Method
beforeDataLimits
* Callback that runs before data limits are determined.
src/types/index.ts:1265
Method
beforeDataLimits
()
src/types/index.ts:1402
Function
beforeDatasetDraw
(chart, args, options)
src/plugins/plugin.filler/index.ts:83
Method
beforeDatasetDraw
* @desc Called before drawing the `chart` dataset at the given `args.index` (datasets * are drawn in the reverse order). If any plugin returns `fal
src/types/index.ts:1098
Method
beforeDatasetUpdate
* @desc Called before updating the `chart` dataset at the given `args.index`. If any plugin * returns `false`, the datasets update is cancelled unt
src/types/index.ts:975
Function
beforeDatasetsDraw
(chart, _args, options)
src/plugins/plugin.filler/index.ts:68
Method
beforeDatasetsDraw
* @desc Called before drawing the `chart` datasets. If any plugin returns `false`, * the datasets drawing is cancelled until another `render` is tr
src/types/index.ts:1078
Method
beforeDatasetsUpdate
* @desc Called before updating the `chart` datasets. If any plugin returns `false`, * the datasets update is cancelled until another `update` is tr
src/types/index.ts:953
Method
beforeDestroy
* Called before the chart is being destroyed. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @pa
src/types/index.ts:1148
Function
beforeDraw
(c)
test/types/options.ts:51
Function
beforeDraw
(chart, _args, options)
src/plugins/plugin.filler/index.ts:51
Method
beforeDraw
* @desc Called before drawing `chart` at every animation frame. If any plugin returns `false`, * the frame drawing is cancelled untilanother `rende
src/types/index.ts:1061
Method
beforeElementsUpdate
* @desc Called during the update process, before any chart elements have been created. * This can be used for data decimation by changing the data
src/types/index.ts:934
Method
beforeEvent
* @desc Called before processing the specified `event`. If any plugin returns `false`, * the event will be discarded. * @param {Chart} chart - T
src/types/index.ts:1121
Method
beforeFit
* Callback that runs before the scale fits to the canvas.
src/types/index.ts:1297
Method
beforeFit
()
src/types/index.ts:1414
Function
beforeFooter
()
test/specs/plugin.tooltip.spec.js:2507
Method
beforeFooter
(this: Model, tooltipItems: Item[])
src/types/index.ts:2771
Method
beforeInit
* @desc Called before initializing `chart`. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @para
src/types/index.ts:900
← previous
next →
1,001–1,100 of 1,573, ranked by callers