MCPcopy Create free account

hub / github.com/chartjs/Chart.js / functions

Functions1,573 in github.com/chartjs/Chart.js

MethodacquireContext
(item)
src/platform/platform.basic.js:14
MethodacquireContext
* 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
FunctionactiveElements
(tooltip: Tooltip)
test/integration/typescript-node/src/index.ts:40
Methodadd
(...args: any[])
src/core/core.registry.ts:28
Methodadd
* Add animations * @param {Chart} chart * @param {Animation[]} items - animations
src/core/core.animator.js:144
Methodadd
()
src/core/core.adapters.ts:113
FunctionaddBox
* 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
MethodaddControllers
(...args: (typeof DatasetController)[])
src/core/core.registry.ts:36
MethodaddElements
(...args: (typeof Element)[])
src/core/core.registry.ts:40
MethodaddEventListener
(_chart: Chart, _type: string, _listener: Function)
src/platform/platform.base.ts:39
FunctionaddNormalRectPath
* Add a path of a rectangle to the current sub-path * @param ctx Context * @param rect Bounding rect
src/elements/element.bar.ts:133
MethodaddPlugins
(...args: any[])
src/core/core.registry.ts:44
MethodaddScales
(...args: (typeof Scale)[])
src/core/core.registry.ts:48
MethodafterAutoSkip
()
src/scales/scale.time.js:406
FunctionafterBody
()
test/specs/plugin.tooltip.spec.js:2504
MethodafterBody
(this: Model, tooltipItems: Item[])
src/types/index.ts:2761
MethodafterBuildTicks
* @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
MethodafterBuildTicks
* Callback that runs after ticks are created. Useful for filtering ticks.
src/types/index.ts:1277
MethodafterBuildTicks
()
src/types/index.ts:1407
MethodafterCalculateLabelRotation
* Callback that runs after tick rotation is determined.
src/types/index.ts:1293
MethodafterCalculateLabelRotation
()
src/types/index.ts:1413
MethodafterDataLimits
* @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
MethodafterDataLimits
* Callback that runs after data limits are determined.
src/types/index.ts:1269
MethodafterDataLimits
()
src/types/index.ts:1404
MethodafterDatasetDraw
* @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
MethodafterDatasetUpdate
* @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
MethodafterDatasetsDraw
* @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
FunctionafterDatasetsUpdate
(chart, _args, options)
src/plugins/plugin.filler/index.ts:15
MethodafterDatasetsUpdate
* @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
MethodafterDestroy
* 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
FunctionafterDraw
()
test/specs/core.animator.spec.js:33
FunctionafterDraw
(chart)
test/fixtures/core.scale/ticks/rotated-multi-line.js:31
FunctionafterDraw
(chart)
test/fixtures/core.scale/ticks/rotated-long.js:31
FunctionafterDraw
(chart)
test/fixtures/plugin.legend/horizontal-rtl-hitbox.js:30
FunctionafterDraw
(chart)
src/plugins/plugin.tooltip.js:1332
MethodafterDraw
* @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
FunctionafterEvent
(chart, args)
src/plugins/plugin.tooltip.js:1350
MethodafterEvent
* @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
MethodafterFit
* Callback that runs after the scale fits to the canvas.
src/types/index.ts:1301
MethodafterFit
()
src/types/index.ts:1416
FunctionafterFooter
()
test/specs/plugin.tooltip.spec.js:2513
MethodafterFooter
(this: Model, tooltipItems: Item[])
src/types/index.ts:2773
FunctionafterInit
(chart)
test/fixtures/controller.doughnut/doughnut-hidden.js:36
FunctionafterInit
(chart)
test/fixtures/controller.doughnut/doughnut-animation.js:45
FunctionafterInit
(chart, _args, options)
src/plugins/plugin.tooltip.js:1308
MethodafterInit
* @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
FunctionafterLabel
()
test/specs/plugin.tooltip.spec.js:2501
MethodafterLabel
(this: Model, tooltipItem: Item)
src/types/index.ts:2744
MethodafterLabel
(this: Model, tooltipItem: Item)
src/types/index.ts:2765
FunctionafterLayout
()
test/specs/plugin.legend.spec.js:1125
MethodafterLayout
* @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
MethodafterRegister
()
src/types/index.ts:1603
MethodafterRender
* @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
MethodafterSetDimensions
* Callback that runs after dimensions are set.
src/types/index.ts:1261
MethodafterSetDimensions
()
src/types/index.ts:1401
MethodafterTickToLabelConversion
* Callback that runs after ticks are converted into strings.
src/types/index.ts:1285
MethodafterTickToLabelConversion
()
src/types/index.ts:1410
FunctionafterTitle
()
test/specs/plugin.tooltip.spec.js:2489
MethodafterTitle
(this: Model, tooltipItems: Item[])
src/types/index.ts:2758
MethodafterTooltipDraw
* @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
MethodafterUnregister
()
src/types/index.ts:1605
FunctionafterUpdate
(chart)
src/plugins/plugin.legend.ts:814
FunctionafterUpdate
(chart)
src/plugins/plugin.tooltip.js:1320
MethodafterUpdate
* @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
MethodafterUpdate
* Callback that runs at the end of the update process.
src/types/index.ts:1305
MethodafterUpdate
()
src/types/index.ts:1398
MethodalignBorderValue
(pixel)
src/core/core.scale.js:1036
FunctionapplyAnimationsDefaults
(defaults: Defaults)
src/core/core.animations.defaults.ts:6
FunctionapplyLayoutsDefaults
(defaults: Defaults)
src/core/core.layouts.defaults.ts:3
FunctionapplyScaleDefaults
(defaults)
src/core/core.scale.defaults.js:3
MethodaspectRatio
()
src/core/core.controller.js:202
Methodattached
()
src/core/core.controller.js:1105
Functionaverage
* Average mode places the tooltip at the average position of the elements shown
src/plugins/plugin.tooltip.js:55
FunctionbeforeBody
()
test/specs/plugin.tooltip.spec.js:2492
MethodbeforeBody
(this: Model, tooltipItems: Item[])
src/types/index.ts:2760
MethodbeforeBuildTicks
* @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
MethodbeforeBuildTicks
* Callback that runs before ticks are created.
src/types/index.ts:1273
MethodbeforeBuildTicks
()
src/types/index.ts:1405
MethodbeforeCalculateLabelRotation
* Callback that runs before tick rotation is determined.
src/types/index.ts:1289
MethodbeforeCalculateLabelRotation
()
src/types/index.ts:1411
MethodbeforeDataLimits
* @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
MethodbeforeDataLimits
* Callback that runs before data limits are determined.
src/types/index.ts:1265
MethodbeforeDataLimits
()
src/types/index.ts:1402
FunctionbeforeDatasetDraw
(chart, args, options)
src/plugins/plugin.filler/index.ts:83
MethodbeforeDatasetDraw
* @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
MethodbeforeDatasetUpdate
* @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
FunctionbeforeDatasetsDraw
(chart, _args, options)
src/plugins/plugin.filler/index.ts:68
MethodbeforeDatasetsDraw
* @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
MethodbeforeDatasetsUpdate
* @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
MethodbeforeDestroy
* 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
FunctionbeforeDraw
(c)
test/types/options.ts:51
FunctionbeforeDraw
(chart, _args, options)
src/plugins/plugin.filler/index.ts:51
MethodbeforeDraw
* @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
MethodbeforeElementsUpdate
* @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
MethodbeforeEvent
* @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
MethodbeforeFit
* Callback that runs before the scale fits to the canvas.
src/types/index.ts:1297
MethodbeforeFit
()
src/types/index.ts:1414
FunctionbeforeFooter
()
test/specs/plugin.tooltip.spec.js:2507
MethodbeforeFooter
(this: Model, tooltipItems: Item[])
src/types/index.ts:2771
MethodbeforeInit
* @desc Called before initializing `chart`. * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @para
src/types/index.ts:900
← previousnext →1,001–1,100 of 1,573, ranked by callers