Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chartjs/Chart.js
/ functions
Functions
1,409 in github.com/chartjs/Chart.js
⨍
Functions
1,409
◇
Types & classes
268
↓ 2 callers
Method
_getLabelCapacity
* @param {number} exampleTime * @return {number} * @private
src/scales/scale.time.js:610
↓ 2 callers
Method
_getRingWeight
* @private
src/controllers/controller.doughnut.js:391
↓ 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:376
↓ 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 {number} [datasetIndex] - The dataset index * @param
src/controllers/controller.bar.js:518
↓ 2 callers
Method
_getStacks
* Returns the stacks based on groups and bar visibility. * @param {number} [last] - The dataset index * @param {number} [dataIndex] - The data ind
src/controllers/controller.bar.js:434
↓ 2 callers
Function
_getStartAndCountOfVisiblePoints
(meta: ChartMeta<'line' | 'scatter'>, points: PointElement[], animationsDisabled: boolean)
src/helpers/helpers.extras.ts:88
↓ 2 callers
Method
_layers
* @return {object[]} * @private
src/core/core.scale.js:1639
↓ 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.plugins.js:59
↓ 2 callers
Method
_notify
* @private
src/core/core.animator.js:23
↓ 2 callers
Function
_pointInLine
(p1: Point, p2: Point, t: number, mode?)
src/helpers/helpers.interpolation.ts:6
↓ 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:1216
↓ 2 callers
Function
_resolve
(key: string, scopes: AnyObject[])
src/helpers/helpers.config.ts:407
↓ 2 callers
Method
_resolveElementOptions
* @private
src/core/core.datasetController.js:804
↓ 2 callers
Function
_scaleRangesChanged
(meta)
src/helpers/helpers.extras.ts:144
↓ 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
Method
_stop
()
src/core/core.controller.js:927
↓ 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:527
↓ 2 callers
Method
_updateVisibility
* @private
src/core/core.controller.js:892
↓ 2 callers
Method
addElements
(...args: ChartComponentLike[])
src/types/index.d.ts:1182
↓ 2 callers
Function
applyStack
(stack, value, dsIndex, options = {})
src/core/core.datasetController.js:70
↓ 2 callers
Function
atEdge
(t: number)
src/helpers/helpers.easing.ts:3
↓ 2 callers
Method
beforeLayout
* @desc Called before laying out `chart`. If any plugin returns `false`, * the layout update is cancelled until another `update` is triggered. *
src/types/index.d.ts:990
↓ 2 callers
Method
bindEvents
* @private
src/core/core.controller.js:964
↓ 2 callers
Method
buildLabels
()
src/plugins/plugin.legend.js:104
↓ 2 callers
Function
calculateLegendItemHeight
(legendItem, fontLineHeight)
src/plugins/plugin.legend.js:577
↓ 2 callers
Method
cancel
()
src/core/core.animation.js:67
↓ 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:331
↓ 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:254
↓ 2 callers
Method
clearCache
()
src/core/core.config.js:203
↓ 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:190
↓ 2 callers
Function
compare2Level
(l1, l2)
src/core/core.controller.js:25
↓ 2 callers
Function
determineAlignment
* Helper to get the alignment of a tooltip given the size
src/plugins/plugin.tooltip.js:269
↓ 2 callers
Function
determineAxis
(id, ...scaleOptions)
src/core/core.config.js:40
↓ 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:144
↓ 2 callers
Method
drawBackground
* @protected
src/core/core.scale.js:1441
↓ 2 callers
Method
drawBorder
* @protected
src/core/core.scale.js:1522
↓ 2 callers
Method
drawGrid
* @protected
src/core/core.scale.js:1468
↓ 2 callers
Method
drawLabels
* @protected
src/core/core.scale.js:1557
↓ 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:1588
↓ 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
Function
generate
(method)
test/specs/helpers.easing.tests.js:41
↓ 2 callers
Method
getAllParsedValues
(scale)
src/core/core.datasetController.js:662
↓ 2 callers
Function
getAngleFromPoint
( centrePoint: Point, anglePoint: Point )
src/helpers/helpers.math.ts:124
↓ 2 callers
Function
getAxisItems
* Helper function to get the items matching along the given X or Y axis * @param {Chart} chart - the chart to look at elements from * @param {Point}
src/core/core.interaction.js:228
↓ 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:304
↓ 2 callers
Function
getBarBounds
* Helper function to get the bounds of the bar regardless of the orientation * @param {BarElement} bar the bar * @param {boolean} [useFinalPosition]
src/elements/element.bar.js:15
↓ 2 callers
Method
getBaseValue
()
src/types/index.d.ts:1376
↓ 2 callers
Function
getBeforeAfterBodyLines
* Helper to build before and after body lines
src/plugins/plugin.tooltip.js:344
↓ 2 callers
Function
getBorderColor
(i: number)
src/plugins/plugin.colors.ts:27
↓ 2 callers
Function
getBoxSize
(labelOpts, fontSize)
src/plugins/plugin.legend.js:24
↓ 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
Method
getContext
()
src/core/core.controller.js:855
↓ 2 callers
Method
getController
(id: string)
src/types/index.d.ts:1186
↓ 2 callers
Method
getDataTimestamps
()
src/types/index.d.ts:3519
↓ 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:562
↓ 2 callers
Method
getDevicePixelRatio
()
src/platform/platform.dom.js:368
↓ 2 callers
Method
getElementsAtEventForMode
(e, mode, options, useFinalPosition)
src/core/core.controller.js:820
↓ 2 callers
Method
getFirstScaleIdForIndexAxis
()
src/controllers/controller.bar.js:493
↓ 2 callers
Method
getIndexAngle
(index)
src/scales/scale.radialLinear.js:482
↓ 2 callers
Function
getIndexAxis
(type, options)
src/core/core.config.js:5
↓ 2 callers
Function
getKeysFromAllScopes
(target: ResolverCache)
src/helpers/helpers.config.ts:419
↓ 2 callers
Method
getLabelTimestamps
* @protected
src/scales/scale.time.js:651
↓ 2 callers
Method
getLineWidthForValue
* Returns the grid line width at given value
src/types/index.d.ts:1357
↓ 2 callers
Method
getMatchingVisibleMetas
* Returns visible dataset metas that are attached to this scale * @param {string} [type] - if specified, also filter by dataset type * @return {ob
src/core/core.scale.js:1680
↓ 2 callers
Method
getMaxBorderWidth
(arcs)
src/controllers/controller.doughnut.js:332
↓ 2 callers
Method
getMaxOverflow
* @return {number|boolean} * @protected
src/core/core.datasetController.js:680
↓ 2 callers
Method
getMaximumSize
* @param {HTMLCanvasElement} canvas * @param {number} [width] - content width of parent element * @param {number} [height] - content height of par
src/platform/platform.dom.js:378
↓ 2 callers
Method
getMeta
()
src/core/core.datasetController.js:323
↓ 2 callers
Method
getPixelForTick
* Returns the location of the tick at the given index * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {number} index
src/core/core.scale.js:906
↓ 2 callers
Method
getPixelForValue
* Returns the location of the given data point. Value can either be an index or a numerical value * The coordinate (0, 0) is at the upper-left corne
src/core/core.scale.js:888
↓ 2 callers
Method
getPointPosition
(index, distanceFromCenter, additionalAngle = 0)
src/scales/scale.radialLinear.js:520
↓ 2 callers
Function
getResolver
(resolverCache, scopes, prefixes)
src/core/core.config.js:383
↓ 2 callers
Function
getSortedDatasetIndices
(chart, filterVisible)
src/core/core.datasetController.js:59
↓ 2 callers
Method
getTicks
()
src/types/index.d.ts:1388
↓ 2 callers
Function
getTicksLimit
(ticksLength, maxTicksLimit)
src/core/core.scale.js:11
↓ 2 callers
Function
getTitleHeight
* @param {object} options
src/core/core.scale.js:95
↓ 2 callers
Function
getTooltipSize
* Get the size of the tooltip
src/plugins/plugin.tooltip.js:148
↓ 2 callers
Function
getValueAxis
(indexAxis: 'x' | 'y')
src/helpers/helpers.curve.ts:10
↓ 2 callers
Method
handleTickRangeOptions
()
src/scales/scale.linearbase.js:181
↓ 2 callers
Method
hasValue
()
src/core/core.element.ts:22
↓ 2 callers
Function
inRange
(el: PointElement, pos: number, axis: 'x' | 'y', useFinalPosition?: boolean)
src/elements/element.point.ts:11
↓ 2 callers
Method
includeOptions
* Utility for determining if `options` should be included in the updated properties * @protected
src/core/core.datasetController.js:878
↓ 2 callers
Method
init
(options: O)
src/types/index.d.ts:1384
↓ 2 callers
Function
initData
(data)
src/core/core.config.js:122
↓ 2 callers
Method
initOffsets
* Returns the start and end offsets from edges in the form of {start, end} * where each value is a relative width to the scale and ranges between 0
src/scales/scale.time.js:417
↓ 2 callers
Function
initOptions
(config)
src/core/core.config.js:115
← previous
next →
201–300 of 1,409, ranked by callers