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
↓ 1 callers
Method
isPluginEnabled
* Check if a plugin with the specific ID is registered and enabled * @param {string} pluginId - The ID of the plugin of which to check if it is ena
src/core/core.controller.js:1223
↓ 1 callers
Function
isWholeStepCount
* Whether (hi - lo) / step is a whole number within floating point precision. * lo, hi and step are each the double nearest to a decimal value, so th
src/scales/scale.linearbase.js:17
↓ 1 callers
Function
items
(datasetIndex)
test/specs/core.controller.spec.js:3353
↓ 1 callers
Function
itemsEqual
(a: LegendItem | null, b: LegendItem | null)
src/plugins/plugin.legend.ts:127
↓ 1 callers
Function
keepFromMajors
* Repeats the same whole step from each major, and drops a tick closer than * one step to the next major. Before the first and after the last major,
src/core/core.scale.autoskip.js:59
↓ 1 callers
Function
keepZero
(value: number, add: number)
src/helpers/helpers.options.ts:189
↓ 1 callers
Function
keptTicks
(count, majors, fit)
test/specs/core.scale.autoskip.unit.spec.js:15
↓ 1 callers
Function
keptTicksReversed
(count, majors, fit)
test/specs/core.scale.autoskip.unit.spec.js:24
↓ 1 callers
Function
keySources
(config, scaleType, userScale)
test/specs/core.config.spec.js:612
↓ 1 callers
Function
keysOf
(...sources)
test/specs/core.config.spec.js:765
↓ 1 callers
Method
label
(this: Model, tooltipItem: Item)
src/types/index.ts:2764
↓ 1 callers
Function
labelOf
(index, data, scales)
test/specs/controller.bubble.spec.js:425
↓ 1 callers
Function
labelOf
(index, data, scales)
test/specs/controller.scatter.spec.js:205
↓ 1 callers
Function
labelsOverHalfTheAxis
(reverse)
test/specs/scale.linear.spec.js:1873
↓ 1 callers
Function
lastTick
(chart)
test/specs/core.scale.spec.js:57
↓ 1 callers
Function
leftForTextAlign
(x, w, align)
src/scales/scale.radialLinear.js:213
↓ 1 callers
Function
legendItemCenter
(chart, index)
test/specs/plugin.tooltip.spec.js:2103
↓ 1 callers
Function
legendItemCenter
(chart, index)
test/specs/core.controller.spec.js:3039
↓ 1 callers
Function
legendWith
(position, legendOptions, count, text)
test/specs/plugin.legend.spec.js:1767
↓ 1 callers
Method
listen
* @param {Chart} chart * @param {string} event - event name * @param {Function} cb - callback
src/core/core.animator.js:135
↓ 1 callers
Function
listenDevicePixelRatioChanges
(chart, resize)
src/platform/platform.dom.js:177
↓ 1 callers
Function
lttbDecimation
(data, start, count, availableWidth, options)
src/plugins/plugin.decimation.js:3
↓ 1 callers
Function
makeChartScale
(range: number)
test/types/scales/options.ts:44
↓ 1 callers
Function
makeDs
(label, offset)
test/fixtures/controller.line/stacking/stack-cache.js:1
↓ 1 callers
Function
makeView
(title, body, footer)
test/specs/plugin.tooltip.spec.js:1591
↓ 1 callers
Function
marginForPositions
(positions: (keyof TRBL)[])
src/core/core.layouts.ts:214
↓ 1 callers
Function
measureLabelSize
(ctx, font, label)
src/scales/scale.radialLinear.js:19
↓ 1 callers
Function
measureTitleLine
(chart, line)
test/specs/plugin.legend.spec.js:5
↓ 1 callers
Function
mergeScaleConfig
* Builds `options.scales`: each stored entry with its sources and * `defaults.scale` merged in, in that order. Unlike the derived object, an * entry
src/core/core.config.js:198
↓ 1 callers
Function
method
()
test/specs/vitest.setup.spec.js:61
↓ 1 callers
Function
minMaxDecimation
(data, start, count, availableWidth)
src/plugins/plugin.decimation.js:82
↓ 1 callers
Function
mirror
* Counts the indexes from the other end, in place, and keeps them ascending. * @param {number[]} indices * @param {number} length
src/core/core.scale.autoskip.js:79
↓ 1 callers
Function
monotoneAdjust
* Adjust tangents to ensure monotonic properties
src/helpers/helpers.curve.ts:57
↓ 1 callers
Function
monotoneCompute
(points: SplinePoint[], mK: number[], indexAxis: 'x' | 'y' = 'x')
src/helpers/helpers.curve.ts:87
↓ 1 callers
Function
moveNumericKeys
(obj, start, move)
src/core/core.controller.js:72
↓ 1 callers
Function
needContext
(proxy, names)
src/core/core.config.js:522
↓ 1 callers
Function
needsBrowser
(name)
test/setup.node.js:24
↓ 1 callers
Function
newDataset
(pointStyle, i)
test/fixtures/plugin.tooltip/point-style.js:3
↓ 1 callers
Function
newDateFromRef
(days)
test/fixtures/scale.time/data-ty.js:1
↓ 1 callers
Function
newDateFromRef
(days)
test/fixtures/scale.time/data-xy.js:1
↓ 1 callers
Function
newDateFromRef
(days)
test/fixtures/scale.time/labels-date.js:1
↓ 1 callers
Function
niceNum
(range: number)
src/helpers/helpers.math.ts:28
↓ 1 callers
Function
noAxisMessage
(id)
test/specs/core.config.spec.js:1
↓ 1 callers
Method
normalize
(values: number[])
src/types/index.ts:3534
↓ 1 callers
Function
normalizeSegment
({start, end, count, loop, style}: StyledSegment & {count: number})
src/helpers/helpers.segment.ts:48
↓ 1 callers
Function
normalizeStart
()
src/helpers/helpers.collection.ts:134
↓ 1 callers
Method
notify
* Calls enabled plugins for `chart` on the specified hook and with the given args. * This method immediately returns as soon as a plugin explicitly
src/core/core.plugins.ts:32
↓ 1 callers
Function
numberOrZero
(v: unknown)
src/helpers/helpers.options.ts:43
↓ 1 callers
Function
offsetFromEdge
(scale, edge, offset)
src/core/core.scale.js:10
↓ 1 callers
Function
onAnimationsComplete
(context)
src/core/core.controller.js:33
↓ 1 callers
Method
onClick
* A callback that is called when a 'click' event is registered on a label item, or a 'mouseup' * (also from 'touchend' and 'pointerup') when the le
src/types/index.ts:2470
↓ 1 callers
Method
override
(scope: S)
src/helpers/helpers.config.types.ts:54
↓ 1 callers
Method
parse
* Parse a supported input value to internal representation. * @param {*} raw * @param {number} [index] * @since 3.0
src/core/core.scale.js:274
↓ 1 callers
Method
parseArrayData
* Parse array of arrays * @param {object} meta - dataset meta * @param {array} data - data array. Example [[1,2],[3,4]] * @param {number} start
src/core/core.datasetController.js:548
↓ 1 callers
Function
parseBorderRadius
(bar: BarElement, maxW: number, maxH: number)
src/elements/element.bar.ts:64
↓ 1 callers
Function
parseBorderRadius
* Parse border radius from the provided options
src/elements/element.arc.ts:66
↓ 1 callers
Function
parseBorderWidth
(bar: BarElement, maxW: number, maxH: number)
src/elements/element.bar.ts:50
↓ 1 callers
Function
parseEdge
(edge: string, a: string, b: string, reverse: boolean)
src/controllers/controller.bar.ts:360
↓ 1 callers
Function
parseFillOption
(line: LineElement)
src/plugins/plugin.filler/filler.options.ts:101
↓ 1 callers
Function
parseFloatBar
(entry: unknown[], item: BarParsed, vScale: BarScale, i: number)
src/controllers/controller.bar.ts:242
↓ 1 callers
Method
parseObjectData
* Parse array of objects * @param {object} meta - dataset meta * @param {array} data - data array. Example [{x:1, y:5}, {x:2, y:10}] * @param {n
src/core/core.datasetController.js:575
↓ 1 callers
Method
parsePrimitiveData
* Parse array of primitive values * @param {object} meta - dataset meta * @param {array} data - data array. Example [1,3,4] * @param {number} st
src/core/core.datasetController.js:518
↓ 1 callers
Function
parsedX
(chart)
test/specs/scale.category.spec.js:1077
↓ 1 callers
Function
parsedYValues
()
test/specs/core.datasetController.spec.js:403
↓ 1 callers
Function
pathFullCircle
( ctx: CanvasRenderingContext2D, element: ArcElement, offset: number, spacing: number, )
src/elements/element.arc.ts:101
↓ 1 callers
Function
placeBoxes
(boxes: LayoutBox[], chartArea: LayoutArea, params: LayoutParams, stacks: Record<string, LayoutStack>)
src/core/core.layouts.ts:266
↓ 1 callers
Function
placeItem
* Store where an item's symbol and text are drawn. * @param placement - what every item shares * @param hitbox - the item's hit box, with its final
src/plugins/plugin.legend.ts:166
↓ 1 callers
Function
pluginOpts
(config: Config, {plugin, local}, opts, context)
src/core/core.plugins.ts:167
↓ 1 callers
Method
pluginScopeKeys
* Returns the options scope keys for resolving plugin options. * @param {{id: string, additionalOptionScopes?: string[]}} plugin * @return {stri
src/core/core.config.js:384
↓ 1 callers
Function
plugins
(minify)
rollup.config.js:17
↓ 1 callers
Method
points
(points: PointElement[])
src/elements/element.line.ts:340
↓ 1 callers
Function
pointsAreFinite
(chart, datasetIndex, prop)
test/specs/core.config.spec.js:3
↓ 1 callers
Function
positionIsHorizontal
(position, axis)
src/core/core.controller.js:21
↓ 1 callers
Function
pressFirstItem
(chart)
test/specs/plugin.legend.spec.js:2067
↓ 1 callers
Function
pressPoint
(chart)
test/specs/core.controller.spec.js:483
↓ 1 callers
Function
rThetaToXY
* Convert (r, 𝜃) to (x, y)
src/elements/element.arc.ts:94
↓ 1 callers
Function
radToNearestDegree
(rad)
test/specs/scale.radialLinear.spec.js:560
↓ 1 callers
Function
readKey
(prefix: string, name: string)
src/helpers/helpers.config.ts:220
↓ 1 callers
Function
readOptions
(resolver, sources, prefix, out)
test/specs/core.config.spec.js:621
↓ 1 callers
Function
readScales
(chart, config)
test/specs/core.config.spec.js:640
↓ 1 callers
Function
readStyle
(options: AnyObject)
src/helpers/helpers.segment.ts:350
↓ 1 callers
Function
readUsedSize
( element: HTMLElement, property: 'width' | 'height' )
src/helpers/helpers.dom.ts:318
↓ 1 callers
Function
readsContext
* Whether an option resolves through the context: a scriptable function or an indexable array
src/core/core.animations.js:138
↓ 1 callers
Function
record
(chart, id)
test/specs/core.config.spec.js:718
↓ 1 callers
Function
recordPath
(draw)
test/specs/element.line.spec.js:48
↓ 1 callers
Function
recursive
(left)
test/specs/plugin.tooltip.spec.js:1408
↓ 1 callers
Function
registerDefaults
(item: any, scope: string, parentScope?: string)
src/core/core.typedRegistry.ts:79
↓ 1 callers
Function
registered
(registry, namespace)
test/specs/vitest.setup.spec.js:46
↓ 1 callers
Function
relativeLabelSize
(value, minSpacing, {horizontal, minRotation})
src/scales/scale.linearbase.js:189
↓ 1 callers
Method
releaseContext
* @param {CanvasRenderingContext2D} context
src/platform/platform.dom.js:293
↓ 1 callers
Method
removeControllers
(...args: (typeof DatasetController)[])
src/core/core.registry.ts:68
↓ 1 callers
Method
removeElements
(...args: (typeof Element)[])
src/core/core.registry.ts:72
↓ 1 callers
Method
removeHoverStyle
(element, datasetIndex, index)
src/core/core.datasetController.js:987
↓ 1 callers
Method
removePlugins
(...args: any[])
src/core/core.registry.ts:76
↓ 1 callers
Method
removeScales
(...args: (typeof Scale)[])
src/core/core.registry.ts:80
↓ 1 callers
Function
resolveKeysFromAllScopes
(scopes: AnyObject[])
src/helpers/helpers.config.ts:435
↓ 1 callers
Function
resolveTargetOptions
(target, newOptions)
src/core/core.animations.js:195
↓ 1 callers
Function
retrieveAxisFromDatasets
(id, config)
src/core/core.config.js:90
↓ 1 callers
Function
reverseAlign
(align)
src/core/core.scale.js:9
↓ 1 callers
Function
routeDefaults
(scope: string, routes: Record<string, string>)
src/core/core.typedRegistry.ts:98
← previous
next →
801–900 of 1,573, ranked by callers