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
↓ 3 callers
Function
scaleFitting
(fit)
test/specs/core.scale.autoskip.unit.spec.js:5
↓ 3 callers
Function
set
(root: object, scope: string | object, values?: object)
src/core/core.defaults.ts:70
↓ 3 callers
Method
setDatasetVisibility
(datasetIndex, visible)
src/core/core.controller.js:955
↓ 3 callers
Function
splitScope
(scope: string)
src/core/core.defaults.ts:49
↓ 3 callers
Method
start
* @desc Called when a plugin is starting. This happens when chart is created or plugin is enabled. * @param {Chart} chart - The chart instance.
src/types/index.ts:885
↓ 3 callers
Function
unlistenArrayEvents
(array, listener)
src/helpers/helpers.collection.ts:208
↓ 3 callers
Method
update
(mode)
src/core/core.controller.js:485
↓ 3 callers
Method
update
(changed, replay)
src/plugins/plugin.tooltip.js:676
↓ 2 callers
Method
_activeFilter
* Returns a test of whether an active item may stay active: its dataset is visible, and * its data item still exists and is not hidden. The dataset
src/core/core.controller.js:1251
↓ 2 callers
Function
_arrayUnique
(items: T[])
src/helpers/helpers.collection.ts:234
↓ 2 callers
Function
_boundSegments
( line: LineElement, bounds?: {property: string, start: number, end: number} )
src/helpers/helpers.segment.ts:163
↓ 2 callers
Method
_calculateBarValuePixels
* Note: pixel values are not clamped to the scale area. * @internal
src/controllers/controller.bar.ts:709
↓ 2 callers
Method
_createAnimations
* @private
src/core/core.animations.js:69
↓ 2 callers
Function
_createBoundaryLine
(boundary, line)
src/plugins/plugin.filler/filler.helper.js:16
↓ 2 callers
Method
_createDescriptors
(chart: Chart, all?: boolean)
src/core/core.plugins.ts:97
↓ 2 callers
Method
_dataCheck
* @private
src/core/core.datasetController.js:377
↓ 2 callers
Method
_eventHandler
* @private
src/core/core.controller.js:1277
↓ 2 callers
Function
_filterBetween
(values: number[], min: number, max: number)
src/helpers/helpers.collection.ts:105
↓ 2 callers
Method
_getAxis
* @internal
src/controllers/controller.bar.ts:619
↓ 2 callers
Function
_getBounds
(property, first, last, loop)
src/plugins/plugin.filler/filler.segment.js:51
↓ 2 callers
Method
_getCircumference
* @private
src/controllers/controller.doughnut.js:179
↓ 2 callers
Method
_getLabelCapacity
* @param {number} exampleTime * @return {number} * @private
src/scales/scale.time.js:619
↓ 2 callers
Method
_getLegendItemAt
* @private
src/plugins/plugin.legend.ts:695
↓ 2 callers
Method
_getRingWeight
* @private
src/controllers/controller.doughnut.js:399
↓ 2 callers
Method
_getRingWeightOffset
* Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
src/controllers/controller.doughnut.js:384
↓ 2 callers
Method
_getRotation
* @private
src/controllers/controller.doughnut.js:172
↓ 2 callers
Method
_getStackIndex
* Returns the stack index for the given dataset based on groups and bar visibility. * @param [datasetIndex] - The dataset index * @param [name] -
src/controllers/controller.bar.ts:644
↓ 2 callers
Method
_getStacks
* Returns the stacks based on groups and bar visibility. * @param [last] - The dataset index * @param [dataIndex] - The data index of the ruler
src/controllers/controller.bar.ts:549
↓ 2 callers
Function
_getStartAndCountOfVisiblePoints
(meta: ChartMeta<'line' | 'scatter'>, points: PointElement[], animationsDisabled: boolean)
src/helpers/helpers.extras.ts:91
↓ 2 callers
Function
_isClickEvent
(e: ChartEvent, events?: string[])
src/helpers/helpers.core.ts:420
↓ 2 callers
Method
_layers
* @return {object[]} * @private
src/core/core.scale.js:1644
↓ 2 callers
Function
_lookup
( table: unknown[], value: number, cmp?: (value: number) => boolean )
src/helpers/helpers.collection.ts:20
↓ 2 callers
Function
_measureText
( ctx: CanvasRenderingContext2D, data: Record<string, number>, gc: string[], longest: number, string
src/helpers/helpers.canvas.ts:39
↓ 2 callers
Method
_notify
* @private
src/core/core.animator.js:23
↓ 2 callers
Method
_notify
* @internal
src/core/core.plugins.ts:56
↓ 2 callers
Function
_pointInLine
(p1: Point, p2: Point, t: number, _mode?)
src/helpers/helpers.interpolation.ts:6
↓ 2 callers
Function
_pointerOwnsActive
(inChartArea: boolean, replay: boolean, changed: boolean)
src/helpers/helpers.core.ts:437
↓ 2 callers
Method
_positionChanged
* Determine if the active elements + event combination changes the * tooltip position * @param {array} active - Active elements * @param {ChartE
src/plugins/plugin.tooltip.js:1296
↓ 2 callers
Function
_resolve
(key: string, scopes: AnyObject[])
src/helpers/helpers.config.ts:415
↓ 2 callers
Method
_resolveElementOptions
* @private
src/core/core.datasetController.js:832
↓ 2 callers
Function
_scaleRangesChanged
(meta)
src/helpers/helpers.extras.ts:147
↓ 2 callers
Function
_setMinAndMaxByKey
( array: Record<string, number>[], target: { min: number, max: number }, property: string )
src/helpers/helpers.math.ts:79
↓ 2 callers
Function
_shouldApplyFill
(source)
src/plugins/plugin.filler/filler.helper.js:36
↓ 2 callers
Function
_textX
(align: 'left' | 'right' | 'center', left: number, right: number, rtl: boolean)
src/helpers/helpers.extras.ts:82
↓ 2 callers
Method
_tickFormatFunction
* Function to format an individual tick mark * @param {number} time * @param {number} index * @param {object[]} ticks * @param {string|undefin
src/scales/scale.time.js:532
↓ 2 callers
Method
_updateVisibility
* @private
src/core/core.controller.js:971
↓ 2 callers
Method
addElements
(...args: ChartComponentLike[])
src/types/index.ts:1187
↓ 2 callers
Function
alphaOf
(value)
test/specs/core.controller.spec.js:3003
↓ 2 callers
Function
applyStack
(stack, value, dsIndex, options = {})
src/core/core.datasetController.js:70
↓ 2 callers
Function
assertPath
* Checks every key of a path before anything is created, so that a rejected * path leaves no empty scope behind.
src/core/core.defaults.ts:42
↓ 2 callers
Function
atEdge
(t: number)
src/helpers/helpers.easing.ts:3
↓ 2 callers
Function
axisFromPosition
(position)
src/core/core.config.js:32
↓ 2 callers
Method
bindEvents
* @private
src/core/core.controller.js:1047
↓ 2 callers
Method
buildLabels
()
src/plugins/plugin.legend.ts:286
↓ 2 callers
Function
calculateItemHeight
* Height of an item: the larger of its symbol and its label, which is one line * for anything but an array, and one line per element for an array. *
src/plugins/plugin.legend.ts:767
↓ 2 callers
Function
calculateTextWidth
* Width of an item's label: its widest line.
src/plugins/plugin.legend.ts:750
↓ 2 callers
Function
changeExponent
(v, m)
src/scales/scale.logarithmic.js:9
↓ 2 callers
Method
chartOptionScopes
* Returns the option scopes for resolving chart options * @return {object[]}
src/core/core.config.js:448
↓ 2 callers
Function
cleanDecimatedData
(chart)
src/plugins/plugin.decimation.js:170
↓ 2 callers
Function
cleanDecimatedDataset
(dataset)
src/plugins/plugin.decimation.js:156
↓ 2 callers
Method
clear
()
src/core/core.controller.js:259
↓ 2 callers
Method
clearCache
()
src/core/core.config.js:320
↓ 2 callers
Function
clearCanvas
(canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D)
src/helpers/helpers.canvas.ts:134
↓ 2 callers
Function
clone
(source: T)
src/helpers/helpers.core.ts:191
↓ 2 callers
Function
commonjsFixtures
()
test/vitest.shared.js:38
↓ 2 callers
Function
compare2Level
(l1, l2)
src/core/core.controller.js:25
↓ 2 callers
Method
datasetScopeKeys
* Returns the option scope keys for resolving dataset options. * These keys do not include the dataset itself, because it is not under options.
src/core/core.config.js:331
↓ 2 callers
Function
determineAlignment
* Helper to get the alignment of a tooltip given the size
src/plugins/plugin.tooltip.js:305
↓ 2 callers
Function
determineAxis
(id, scaleOptions, boundAxis)
src/core/core.config.js:76
↓ 2 callers
Function
determineUnitForAutoTicks
* Figures out what unit results in an appropriate number of auto-generated ticks * @param {Unit} minUnit * @param {number} min * @param {number} ma
src/scales/scale.time.js:87
↓ 2 callers
Function
distanceBetweenPoints
(pt1: Point, pt2: Point)
src/helpers/helpers.math.ts:147
↓ 2 callers
Method
drawBackground
* @protected
src/core/core.scale.js:1446
↓ 2 callers
Method
drawBorder
* @protected
src/core/core.scale.js:1527
↓ 2 callers
Method
drawGrid
* @protected
src/core/core.scale.js:1473
↓ 2 callers
Method
drawLabels
* @protected
src/core/core.scale.js:1562
↓ 2 callers
Function
drawPoint
( ctx: CanvasRenderingContext2D, options: DrawPointOptions, x: number, y: number )
src/helpers/helpers.canvas.ts:156
↓ 2 callers
Function
drawPointLegend
( ctx: CanvasRenderingContext2D, options: DrawPointOptions, x: number, y: number, w: number )
src/helpers/helpers.canvas.ts:167
↓ 2 callers
Method
drawTitle
* @protected
src/core/core.scale.js:1593
↓ 2 callers
Function
elasticIn
(t: number, s: number, p: number)
src/helpers/helpers.easing.ts:4
↓ 2 callers
Function
elasticOut
(t: number, s: number, p: number)
src/helpers/helpers.easing.ts:5
↓ 2 callers
Method
endOf
* Returns end of `unit` for the given `timestamp`. * @param timestamp - the input timestamp * @param unit - the unit as string
src/core/core.adapters.ts:62
↓ 2 callers
Method
first
()
src/types/index.ts:2034
↓ 2 callers
Method
formats
* Returns a map of time formats for the supported formatting units defined * in Unit as well as 'datetime' representing a detailed date/time string
src/core/core.adapters.ts:22
↓ 2 callers
Function
generate
(method)
test/specs/helpers.easing.unit.spec.js:41
↓ 2 callers
Method
getAllParsedValues
(scale)
src/core/core.datasetController.js:678
↓ 2 callers
Function
getAnchorPosition
* The point the tooltip anchors to. A bar cut off by the chart area points at the centre * of its visible part; a bar wholly inside, and any other el
src/plugins/plugin.tooltip.js:38
↓ 2 callers
Function
getAngleFromPoint
( centrePoint: Point, anglePoint: Point )
src/helpers/helpers.math.ts:127
↓ 2 callers
Function
getAxisItems
* Helper function to get the items matching along the given X or Y axis * @param chart - the chart to look at elements from * @param position - the
src/core/core.interaction.ts:299
↓ 2 callers
Function
getBackgroundColor
(i: number)
src/plugins/plugin.colors.ts:31
↓ 2 callers
Function
getBackgroundPoint
* Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment
src/plugins/plugin.tooltip.js:340
↓ 2 callers
Method
getBaseValue
()
src/types/index.ts:1381
↓ 2 callers
Function
getBeforeAfterBodyLines
* Helper to build before and after body lines
src/plugins/plugin.tooltip.js:380
↓ 2 callers
Function
getBorderColor
(i: number)
src/plugins/plugin.colors.ts:27
↓ 2 callers
Function
getCanvas
* Chart.js can take a string id of a canvas element, a 2d context, or a canvas element itself. * Attempt to unwrap the item passed into the chart con
src/core/core.controller.js:51
↓ 2 callers
Function
getChartArea
* The chart area of the tooltip a positioner runs for, when it runs for one. * A positioner can also be called on its own, without a tooltip as `this
src/plugins/plugin.tooltip.js:21
↓ 2 callers
Method
getContext
()
src/core/core.controller.js:934
↓ 2 callers
Method
getDataTimestamps
()
src/types/index.ts:3532
↓ 2 callers
Function
getDatasetClipArea
(chart: Chart, meta: ChartMeta)
src/helpers/helpers.dataset.ts:20
↓ 2 callers
Method
getDecimalForValue
* @param {number} value - Milliseconds since epoch (1 January 1970 00:00:00 UTC) * @return {number}
src/scales/scale.time.js:571
↓ 2 callers
Method
getDevicePixelRatio
()
src/platform/platform.dom.js:368
← previous
next →
201–300 of 1,573, ranked by callers