MCPcopy Create free account

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

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

Functionnearest
* nearest mode returns the element closest to the point * @param chart - the chart we are returning items from * @param e - the event we are fin
src/core/core.interaction.ts:424
Functionnearest
* Gets the tooltip position nearest of the item nearest to the event position
src/plugins/plugin.tooltip.js:92
FunctionnewDate
(days)
docs/scripts/utils.js:151
FunctionnewDateString
(days)
docs/scripts/utils.js:155
Functionnoop
()
src/helpers/helpers.core.ts:11
Functionnumber
(from: number, to: number, factor: number)
src/core/core.animation.ts:18
Functionnumbers
(config)
docs/scripts/utils.js:20
Functionnumeric
* Formatter for numeric ticks * @method Chart.Ticks.formatters.numeric * @param tickValue {number} the value to be formatted * @param index {
src/core/core.ticks.js:49
FunctiononAnimationProgress
(context)
src/core/core.controller.js:41
FunctiononClick
(e: ChartEvent, legendItem: LegendItem, legend: LegendElement<ChartType>)
test/integration/typescript-node/src/legend.ts:11
FunctiononClick
(e: ChartEvent, legendItem: LegendItem, legend: LegendElement<ChartType>)
test/integration/typescript-latest/src/legend.ts:11
FunctiononClick
(e: ChartEvent, legendItem: LegendItem, legend: LegendElement<ChartType>)
test/types/plugins/plugin.legend/legend_onclick_general_parameter.ts:15
FunctiononClick
(e, legendItem, legend)
test/types/plugins/plugin.legend/legend_pie_default_onclick.ts:16
FunctiononClick
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/types/plugins/plugin.legend/legend_callback_this.ts:15
FunctiononClick
()
test/specs/plugin.legend.spec.js:1454
FunctiononClick
(_e, legendItem, legend)
src/plugins/plugin.legend.ts:836
MethodonClick
(e, legendItem, legend)
src/controllers/controller.doughnut.js:125
MethodonClick
(_e, legendItem, legend)
src/controllers/controller.polarArea.ts:63
MethodonClick
* Called if the event is of type 'click' or 'contextmenu', or 'mouseup' (also from 'touchend' and 'pointerup') * when `events` does not include 'cl
src/types/index.ts:1739
FunctiononComplete
()
test/specs/core.datasetController.spec.js:1464
FunctiononHover
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/integration/typescript-node/src/legend.ts:32
FunctiononHover
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/integration/typescript-latest/src/legend.ts:32
FunctiononHover
(e: ChartEvent, legendItem: LegendItem, legend: LegendElement<ChartType>)
test/types/plugins/plugin.legend/legend_onclick_general_parameter.ts:18
FunctiononHover
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/types/plugins/plugin.legend/legend_callback_this.ts:32
MethodonHover
* Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.
src/types/index.ts:1733
MethodonHover
* A callback that is called when a 'mousemove' event is registered on top of a label item
src/types/index.ts:2474
FunctiononLeave
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/integration/typescript-node/src/legend.ts:39
FunctiononLeave
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/integration/typescript-latest/src/legend.ts:39
FunctiononLeave
(e: ChartEvent, legendItem: LegendItem, legend: LegendElement<ChartType>)
test/types/plugins/plugin.legend/legend_onclick_general_parameter.ts:21
FunctiononLeave
(this: LegendElement<ChartType>, e: ChartEvent, legendItem: LegendItem)
test/types/plugins/plugin.legend/legend_callback_this.ts:49
MethodonLeave
* A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item, * or when the pointer leaves the can
src/types/index.ts:2479
FunctiononProgress
()
test/specs/core.datasetController.spec.js:1463
FunctiononResize
(chart, newSize)
test/specs/core.controller.spec.js:771
MethodonResize
* Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.
src/types/index.ts:1712
FunctiononWindowResize
()
src/platform/platform.dom.js:164
Methodoptions
()
src/core/core.controller.js:226
Methodoptions
()
src/core/core.config.js:301
Methodoverride
* Override default date adapter methods. * Accepts type parameter to define options type. * @example * Chart._adapters._date.override<{myAdap
src/core/core.adapters.ts:87
Methodoverride
(scope: string | object, values?: object)
src/core/core.defaults.ts:184
Methodoverride
(scope: S)
src/helpers/helpers.config.types.ts:21
FunctionownKeys
* A trap for Object.getOwnPropertyNames and Object.getOwnPropertySymbols.
src/helpers/helpers.config.ts:96
Methodparse
* Override data parsing, since we are not using scales
src/controllers/controller.doughnut.js:148
Methodparse
()
src/core/core.adapters.ts:105
Methodparse
(raw, index)
src/scales/scale.linearbase.js:212
Methodparse
(raw, index)
src/scales/scale.logarithmic.js:104
Methodparse
* @param {*} raw * @param {number?} [index] * @return {number}
src/scales/scale.time.js:301
Methodparse
(raw, index)
docs/scripts/log2.js:10
MethodparseArrayData
* Overriding array data parsing since we support mixed primitive/array * data for float bars
src/controllers/controller.bar.ts:433
MethodparseArrayData
* Parse array of arrays * @protected
src/controllers/controller.bubble.js:68
FunctionparseISODate
(str)
docs/scripts/utils.js:159
MethodparseObjectData
* Overriding object data parsing since we support mixed primitive/array * value-scale data for float bars
src/controllers/controller.bar.ts:441
MethodparseObjectData
(meta: ChartMeta<'polarArea'>, data: AnyObject[], start: number, count: number)
src/controllers/controller.polarArea.ts:118
MethodparseObjectData
* Parse array of objects * @protected
src/controllers/controller.bubble.js:81
MethodparseObjectData
(meta: ChartMeta<'radar'>, data: AnyObject[], start: number, count: number)
src/controllers/controller.radar.ts:43
MethodparsePrimitiveData
* Overriding primitive data parsing since we support mixed primitive/array * data for float bars
src/controllers/controller.bar.ts:425
MethodparsePrimitiveData
* Parse array of primitive values * @protected
src/controllers/controller.bubble.js:56
Functionpassive
()
src/helpers/helpers.dom.ts:292
Methodpath
* Append all segments of this line to current path. * @param ctx * @param [start] * @param [count] * @returns true if line is a full loop (pat
src/elements/element.line.ts:435
FunctionpathSegment
* Create path from points, grouping by truncated x-coordinate * Points need to be in order by x-coordinate for this to work efficiently * @param ctx
src/elements/element.line.ts:86
MethodpathSegment
(ctx, bounds, opts)
src/plugins/plugin.filler/simpleArc.ts:15
MethodpathSegment
* Append a segment of this line to current path. * @param ctx * @param segment * @param segment.start - start index of the segment, referring th
src/elements/element.line.ts:419
Methodplatform
()
src/core/core.config.js:281
Methodplugins
()
src/core/core.config.js:309
Functionpoint
* Point mode returns all elements that hit test based on the event position * of the event * @param chart - the chart we are returning items fro
src/core/core.interaction.ts:409
Functionpoints
(config)
docs/scripts/utils.js:44
Functionprogress
(animation)
test/specs/core.animator.spec.js:9
Functionrand
(min, max)
docs/scripts/utils.js:13
Methodregister
(...items)
src/core/core.controller.js:112
Methodregister
* @returns The scope where items defaults were registered to.
src/core/core.typedRegistry.ts:26
Methodregistry
()
src/core/core.controller.js:234
MethodreleaseContext
* Called at chart destruction time, releases any resources associated to the context * previously returned by the acquireContext() method. * @para
src/platform/platform.base.ts:26
FunctionreleaseObserver
(chart, type, observer)
src/platform/platform.dom.js:231
Methodremove
(...args: any[])
src/core/core.registry.ts:32
Methodremove
* Remove chart from Animator * @param {Chart} chart
src/core/core.animator.js:208
FunctionremoveBox
* Remove a layoutItem from a chart * @param chart - the chart to remove the box from * @param layoutItem - the item to remove from the layout
src/core/core.layouts.ts:348
MethodremoveEventListener
(_chart: Chart, _type: string, _listener: Function)
src/platform/platform.base.ts:48
FunctionremoveListener
(chart, type, listener)
src/platform/platform.dom.js:103
Functionreplacer
(_key: string, value: unknown)
src/helpers/helpers.segment.ts:367
Functionreset
(chart, _args, options)
src/plugins/plugin.tooltip.js:1326
Methodreset
* Resets the chart back to its state before the initial animation
src/core/core.controller.js:480
Methodreset
()
src/core/core.datasetController.js:357
Methodroute
* Routes the named defaults to fallback to another scope/name. * This routing is useful when those target values, like defaults.color, are changed r
src/core/core.defaults.ts:205
Functionrun
(chart)
test/fixtures/plugin.colors/dynamic-datasets-force-override.js:35
Functionrun
(chart)
test/fixtures/plugin.colors/dynamic-datasets-default.js:34
Functionrun
(chart)
test/fixtures/controller.doughnut/doughnut-set-active-elements.js:22
Functionrun
(chart)
test/fixtures/controller.doughnut/doughnut-hidden-single.js:37
Functionrun
(chart)
test/fixtures/controller.doughnut/event-replay.js:29
Functionrun
(chart)
test/fixtures/controller.doughnut/doughnut-full-to-semi.js:28
Functionrun
(chart)
test/fixtures/controller.doughnut/borderDash/hover.js:31
Functionrun
(chart)
test/fixtures/controller.line/stacking/stack-cache.js:51
Functionrun
(chart)
test/fixtures/controller.line/stacking/updates.js:35
Functionrun
()
test/fixtures/controller.line/fill/no-border.js:37
Functionrun
(chart)
test/fixtures/plugin.filler/line/points-outside-canvas-update.js:29
Functionrun
(chart)
test/fixtures/controller.scatter/showLine/changed.js:29
Functionrun
(chart)
test/fixtures/controller.bar/stacking/issue-9105.js:44
Functionrun
(chart)
test/fixtures/controller.bar/stacking/replace-data.js:41
Functionrun
(chart)
test/fixtures/controller.bar/stacking/remove-dataset.js:97
Functionrun
(chart)
test/fixtures/core.interaction/nearest-partial-bar.js:34
Functionrun
(chart)
test/fixtures/core.interaction/nearest-point-behind-scale.js:40
Functionrun
(chart)
test/fixtures/core.interaction/drawActiveElementsOnTop-false.js:36
← previousnext →1,401–1,500 of 1,573, ranked by callers