Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chartjs/Chart.js
/ functions
Functions
1,416 in github.com/chartjs/Chart.js
⨍
Functions
1,416
◇
Types & classes
268
Function
afterDatasetsUpdate
(chart, _args, options)
src/plugins/plugin.filler/index.js: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.d.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.d.ts:1155
Function
afterDraw
()
test/specs/core.animator.tests.js:29
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:1247
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.d.ts:1069
Function
afterEvent
(chart, args)
src/plugins/plugin.legend.js:630
Function
afterEvent
(chart, args)
src/plugins/plugin.tooltip.js:1265
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.d.ts:1133
Method
afterFit
* Callback that runs after the scale fits to the canvas.
src/types/index.d.ts:1301
Method
afterFit
()
src/types/index.d.ts:1416
Function
afterFooter
()
test/specs/plugin.tooltip.tests.js:1958
Method
afterFooter
(this: Model, tooltipItems: Item[])
src/types/index.d.ts:2767
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:1229
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.d.ts:907
Function
afterLabel
()
test/specs/plugin.tooltip.tests.js:1946
Method
afterLabel
(this: Model, tooltipItem: Item)
src/types/index.d.ts:2738
Method
afterLabel
(this: Model, tooltipItem: Item)
src/types/index.d.ts:2759
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.d.ts:1035
Method
afterRegister
()
src/types/index.d.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.d.ts:1052
Method
afterSetDimensions
* Callback that runs after dimensions are set.
src/types/index.d.ts:1261
Method
afterSetDimensions
()
src/types/index.d.ts:1401
Method
afterTickToLabelConversion
* Callback that runs after ticks are converted into strings.
src/types/index.d.ts:1285
Method
afterTickToLabelConversion
()
src/types/index.d.ts:1410
Function
afterTitle
()
test/specs/plugin.tooltip.tests.js:1934
Method
afterTitle
(this: Model, tooltipItems: Item[])
src/types/index.d.ts:2752
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.d.ts:2792
Method
afterUnregister
()
src/types/index.d.ts:1605
Function
afterUpdate
(chart)
src/plugins/plugin.legend.js:623
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.d.ts:926
Method
afterUpdate
* Callback that runs at the end of the update process.
src/types/index.d.ts:1305
Method
afterUpdate
()
src/types/index.d.ts:1398
Method
alignBorderValue
(pixel)
src/core/core.scale.js:1033
Function
applyAnimationsDefaults
(defaults)
src/core/core.animations.defaults.js:4
Function
applyLayoutsDefaults
(defaults)
src/core/core.layouts.defaults.js:1
Function
applyScaleDefaults
(defaults)
src/core/core.scale.defaults.js:3
Method
aspectRatio
()
src/core/core.controller.js:197
Method
attached
()
src/core/core.controller.js:1026
Function
average
* Average mode places the tooltip at the average position of the elements shown
src/plugins/plugin.tooltip.js:21
Function
beforeBody
()
test/specs/plugin.tooltip.tests.js:1937
Method
beforeBody
(this: Model, tooltipItems: Item[])
src/types/index.d.ts:2754
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.d.ts:1019
Method
beforeBuildTicks
* Callback that runs before ticks are created.
src/types/index.d.ts:1273
Method
beforeBuildTicks
()
src/types/index.d.ts:1405
Method
beforeCalculateLabelRotation
* Callback that runs before tick rotation is determined.
src/types/index.d.ts:1289
Method
beforeCalculateLabelRotation
()
src/types/index.d.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.d.ts:1003
Method
beforeDataLimits
* Callback that runs before data limits are determined.
src/types/index.d.ts:1265
Method
beforeDataLimits
()
src/types/index.d.ts:1402
Function
beforeDatasetDraw
(chart, args, options)
src/plugins/plugin.filler/index.js: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.d.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.d.ts:975
Function
beforeDatasetsDraw
(chart, _args, options)
src/plugins/plugin.filler/index.js: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.d.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.d.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.d.ts:1148
Function
beforeDraw
(chart, _args, options)
src/plugins/plugin.filler/index.js: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.d.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.d.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.d.ts:1121
Method
beforeFit
* Callback that runs before the scale fits to the canvas.
src/types/index.d.ts:1297
Method
beforeFit
()
src/types/index.d.ts:1414
Function
beforeFooter
()
test/specs/plugin.tooltip.tests.js:1952
Method
beforeFooter
(this: Model, tooltipItems: Item[])
src/types/index.d.ts:2765
Method
beforeInit
* @desc Called before initializing `chart`. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @para
src/types/index.d.ts:900
Function
beforeLabel
()
test/specs/plugin.tooltip.tests.js:1940
Method
beforeLabel
(this: Model, tooltipItem: Item)
src/types/index.d.ts:2736
Method
beforeLabel
(this: Model, tooltipItem: Item)
src/types/index.d.ts:2757
Function
beforeLayout
(chart: Chart, _args, options: ColorsPluginOptions)
src/plugins/plugin.colors.ts:102
Method
beforeLayout
* Called before the layout process starts
src/types/layout.d.ts:46
Method
beforeLayout
()
src/core/core.scale.js:372
Method
beforeLayout
()
src/scales/scale.category.js:70
Method
beforeLayout
()
src/scales/scale.time.js:302
Method
beforeRegister
()
src/types/index.d.ts:1602
Method
beforeRender
* @desc Called before rendering `chart`. If any plugin returns `false`, * the rendering is cancelled until another `render` is triggered. * @par
src/types/index.d.ts:1044
Method
beforeSetDimensions
* Callback that runs before dimensions are set.
src/types/index.d.ts:1257
Method
beforeSetDimensions
()
src/types/index.d.ts:1399
Method
beforeTickToLabelConversion
* Callback that runs before ticks are converted into strings.
src/types/index.d.ts:1281
Method
beforeTickToLabelConversion
()
src/types/index.d.ts:1408
Function
beforeTitle
()
test/specs/plugin.tooltip.tests.js:1928
Method
beforeTitle
(this: Model, tooltipItems: Item[])
src/types/index.d.ts:2750
Method
beforeTooltipDraw
* @desc Called before drawing the `tooltip`. If any plugin returns `false`, * the tooltip drawing is cancelled until another `render` is triggered.
src/types/index.d.ts:2783
Method
beforeUnregister
()
src/types/index.d.ts:1604
Function
beforeUpdate
()
test/specs/core.controller.tests.js:1101
Function
beforeUpdate
(chart, _args, options)
src/plugins/plugin.legend.js:615
Function
beforeUpdate
(chart, _args, options)
src/plugins/plugin.tooltip.js:1235
Function
beforeUpdate
(chart, _args, options)
src/plugins/plugin.title.js:139
Function
beforeUpdate
(chart, _args, options)
src/plugins/plugin.subtitle.js:26
Method
beforeUpdate
* @desc Called before updating `chart`. If any plugin returns `false`, the update * is cancelled (and thus subsequent render(s)) until another `upd
src/types/index.d.ts:917
Method
beforeUpdate
* Callback called before the update process starts.
src/types/index.d.ts:1253
Method
beforeUpdate
()
src/types/index.d.ts:1396
Function
boolean
(from, to, factor)
src/core/core.animation.js:7
Function
bubbles
(config)
docs/scripts/utils.js:50
Method
buildTicks
()
src/types/index.d.ts:1406
← previous
next →
901–1,000 of 1,416, ranked by callers