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
↓ 4 callers
Method
_get
* @private
src/core/core.registry.js:175
↓ 4 callers
Method
_getSharedOptions
* @todo v4, rename to getSharedOptions and remove excess functions
src/core/core.datasetController.js:885
↓ 4 callers
Function
_isBetween
(value: number, start: number, end: number, epsilon = 1e-6)
src/helpers/helpers.math.ts:205
↓ 4 callers
Function
_lookup
( table: unknown[], value: number, cmp?: (value: number) => boolean )
src/helpers/helpers.collection.ts:20
↓ 4 callers
Function
_lookupByKey
( table: Record<string, number>[], key: string, value: number, last?: boolean )
src/helpers/helpers.collection.ts:50
↓ 4 callers
Method
_resolveAnimations
* @private
src/core/core.datasetController.js:841
↓ 4 callers
Method
_setStyle
* @private
src/core/core.datasetController.js:919
↓ 4 callers
Method
active
()
src/core/core.animation.js:47
↓ 4 callers
Method
addEventListener
* * @param {Chart} chart * @param {string} type * @param {function} listener
src/platform/platform.dom.js:331
↓ 4 callers
Function
cachedKeys
(cacheKey, generate)
src/core/core.config.js:141
↓ 4 callers
Function
clipArea
(ctx: CanvasRenderingContext2D, area: TRBL)
src/helpers/helpers.canvas.ts:328
↓ 4 callers
Function
defined
(value: unknown)
src/helpers/helpers.core.ts:391
↓ 4 callers
Function
evaluateInteractionItems
* Helper function to select candidate elements for interaction * @param {Chart} chart - the chart * @param {string} axis - the axis mode. x|y|xy|r
src/core/core.interaction.js:74
↓ 4 callers
Method
fillText
(x, y, legendItem)
src/plugins/plugin.legend.js:367
↓ 4 callers
Function
fn
()
test/specs/helpers.config.tests.js:848
↓ 4 callers
Function
getAlignedX
(tooltip, align, options)
src/plugins/plugin.tooltip.js:331
↓ 4 callers
Function
getComputedStyle
(element: HTMLElement)
src/helpers/helpers.dom.ts:45
↓ 4 callers
Method
getDistanceFromCenterForValue
(value)
src/scales/scale.radialLinear.js:489
↓ 4 callers
Method
getOptionScopes
* Resolves the objects from options and defaults for option value resolution. * @param {object} mainScope - The main scope object for options *
src/core/core.config.js:296
↓ 4 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/types/index.d.ts:1346
↓ 4 callers
Method
getPlugin
(id: string)
src/types/index.d.ts:1188
↓ 4 callers
Method
getPointPosition
(index: number, distanceFromCenter: number)
src/types/index.d.ts:3684
↓ 4 callers
Function
getTickMarkLength
* @param {object} options
src/core/core.scale.js:88
↓ 4 callers
Method
hide
(datasetIndex, dataIndex)
src/core/core.controller.js:908
↓ 4 callers
Method
isPointInArea
* Checks whether the given point is in the chart area. * @param {Point} point - in relative coordinates (see, e.g., getRelativePosition) * @retu
src/core/core.controller.js:816
↓ 4 callers
Function
log10Floor
src/scales/scale.logarithmic.js:8
↓ 4 callers
Function
pushOrConcat
(base, toPush)
src/plugins/plugin.tooltip.js:94
↓ 4 callers
Method
remove
(...args: ChartComponentLike[])
src/types/index.d.ts:1179
↓ 4 callers
Method
running
(chart)
src/core/core.animator.js:174
↓ 4 callers
Method
setActiveElements
(active: ActiveDataPoint[], eventPosition: Point)
src/types/index.d.ts:2699
↓ 4 callers
Method
size
(options?: Partial<PointOptions & PointHoverOptions>)
src/elements/element.point.ts:81
↓ 4 callers
Function
splitNewlines
* Returns array of strings split by newline * @param {*} str - The value to split by newline. * @returns {string|string[]} value if newline present
src/plugins/plugin.tooltip.js:113
↓ 4 callers
Function
toDegrees
(radians)
test/specs/scale.radialLinear.tests.js:643
↓ 4 callers
Function
unclipArea
(ctx: CanvasRenderingContext2D)
src/helpers/helpers.canvas.ts:335
↓ 4 callers
Method
unregister
(item: ChartComponent)
src/types/index.d.ts:1571
↓ 3 callers
Function
_boundSegment
(segment, points, bounds)
src/helpers/helpers.segment.js:77
↓ 3 callers
Function
_capitalize
(str: string)
src/helpers/helpers.core.ts:386
↓ 3 callers
Function
_drawfill
(ctx, source, area)
src/plugins/plugin.filler/filler.drawing.js:5
↓ 3 callers
Function
_getParentNode
(domNode: HTMLCanvasElement)
src/helpers/helpers.dom.ts:16
↓ 3 callers
Function
_getSegmentMethod
* @param {LineElement} line - the line * @returns {function} * @private
src/elements/element.line.js:185
↓ 3 callers
Method
_getSortedDatasetMetas
* @private
src/core/core.controller.js:737
↓ 3 callers
Method
_getStackCount
* Returns the effective number of stacks based on groups and bar visibility. * @private
src/controllers/controller.bar.js:485
↓ 3 callers
Function
_isDomSupported
()
src/helpers/helpers.dom.ts:9
↓ 3 callers
Method
_notify
(resolved)
src/core/core.animation.js:112
↓ 3 callers
Function
_readValueToProps
(value: number | Record<string, number>, props: string[] | Record<string, string>)
src/helpers/helpers.options.ts:51
↓ 3 callers
Method
_resize
(width, height)
src/core/core.controller.js:277
↓ 3 callers
Method
_resolveAnimations
* @private
src/plugins/plugin.tooltip.js:507
↓ 3 callers
Function
_toLeftRightCenter
(align: 'start' | 'end' | 'center')
src/helpers/helpers.extras.ts:67
↓ 3 callers
Method
_updateHoverStyles
* @private
src/core/core.controller.js:1145
↓ 3 callers
Function
addRoundedRectPath
( ctx: CanvasRenderingContext2D, rect: RoundedRect & { radius: TRBLCorners } )
src/helpers/helpers.canvas.ts:498
↓ 3 callers
Function
almostEquals
(x: number, y: number, epsilon: number)
src/helpers/helpers.math.ts:21
↓ 3 callers
Method
applyStack
* @protected
src/core/core.datasetController.js:593
↓ 3 callers
Function
createSubResolver
( parentScopes: AnyObject[], resolver: ResolverCache, prop: ResolverObjectKey, value: unknown )
src/helpers/helpers.config.ts:335
↓ 3 callers
Method
describe
(scope: string, values: AnyObject)
src/types/index.d.ts:717
↓ 3 callers
Method
diff
* Returns the number of `unit` between the given timestamps. * @param a - the input timestamp (reference) * @param b - the timestamp to subtract
src/core/core.adapters.ts:48
↓ 3 callers
Function
finiteOrDefault
(value: unknown, defaultValue: number)
src/helpers/helpers.core.ts:73
↓ 3 callers
Method
getActiveElements
()
src/types/index.d.ts:2698
↓ 3 callers
Method
getContext
* @protected
src/core/core.datasetController.js:762
↓ 3 callers
Method
getDistanceFromCenterForValue
(value: number)
src/types/index.d.ts:3682
↓ 3 callers
Method
getElement
(id: string)
src/types/index.d.ts:1187
↓ 3 callers
Function
getHoverColor
(value)
src/helpers/helpers.color.ts:28
↓ 3 callers
Method
getIndexAngle
(index: number)
src/types/index.d.ts:3681
↓ 3 callers
Function
getIntersectItems
* Helper function to get the items that intersect the event position * @param {Chart} chart - the chart * @param {Point} position - the point to be
src/core/core.interaction.js:114
↓ 3 callers
Function
getNearestItems
* Helper function to get the items nearest to the event position considering all visible items in the chart * @param {Chart} chart - the chart to loo
src/core/core.interaction.js:209
↓ 3 callers
Function
getPoint
(points: SplinePoint[], i: number)
src/helpers/helpers.curve.ts:9
↓ 3 callers
Method
getPointLabelContext
(index)
src/scales/scale.radialLinear.js:511
↓ 3 callers
Method
getPointPositionForValue
(index: number, value: number)
src/types/index.d.ts:3685
↓ 3 callers
Function
getPositionedStyle
(styles: CSSStyleDeclaration, style: string, suffix?: string)
src/helpers/helpers.dom.ts:53
↓ 3 callers
Function
getScope
* @param {object} node * @param {string} key * @return {object}
src/core/core.defaults.js:15
↓ 3 callers
Method
getSharedOptions
* Utility for getting the options object shared between elements * @protected
src/core/core.datasetController.js:867
↓ 3 callers
Function
getTickBackdropHeight
(opts)
src/scales/scale.radialLinear.js:9
↓ 3 callers
Function
inRange
(bar, x, y, useFinalPosition)
src/elements/element.bar.js:103
↓ 3 callers
Function
interpolate
* Linearly interpolates the given source `val` using the table. If value is out of bounds, values * at edges are used for the interpolation. * @para
src/scales/scale.timeseries.js:12
↓ 3 callers
Function
isDirectUpdateMode
(mode)
src/core/core.datasetController.js:229
↓ 3 callers
Function
isFloatBar
(custom)
src/controllers/controller.bar.js:170
↓ 3 callers
Function
isPatternOrGradient
(value: unknown)
src/helpers/helpers.color.ts:3
↓ 3 callers
Method
leftForLtr
(x: number, itemWidth: number)
src/helpers/helpers.rtl.ts:6
↓ 3 callers
Function
mergeIf
(target: T, source: AnyObject[])
src/helpers/helpers.core.ts:301
↓ 3 callers
Function
needsSubResolver
(prop: string, value: unknown)
src/helpers/helpers.config.ts:215
↓ 3 callers
Method
pathSegment
(ctx: CanvasRenderingContext2D, segment: Segment, params: AnyObject)
src/types/index.d.ts:2031
↓ 3 callers
Method
render
()
src/core/core.controller.js:683
↓ 3 callers
Method
resize
* Resize the chart to its container or to explicit dimensions. * @param {number} [width] * @param {number} [height]
src/core/core.controller.js:269
↓ 3 callers
Method
resolveDataElementOptions
* @param {number} index * @param {string} [mode] * @protected
src/core/core.datasetController.js:797
↓ 3 callers
Method
route
* Routes the named defaults to fallback to another scope/name. * This routing is useful when those target values, like defaults.color, are changed
src/types/index.d.ts:737
↓ 3 callers
Function
set
(root, scope, values)
src/core/core.defaults.js:27
↓ 3 callers
Method
setDatasetVisibility
(datasetIndex, visible)
src/core/core.controller.js:876
↓ 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.d.ts:880
↓ 3 callers
Method
tick
(date)
src/core/core.animation.js:76
↓ 2 callers
Function
_arrayUnique
(items: T[])
src/helpers/helpers.collection.ts:184
↓ 2 callers
Function
_boundSegments
(line, bounds)
src/helpers/helpers.segment.js:141
↓ 2 callers
Method
_createAnimations
* @private
src/core/core.animations.js:68
↓ 2 callers
Function
_createBoundaryLine
(boundary, line)
src/plugins/plugin.filler/filler.helper.js:16
↓ 2 callers
Method
_createDescriptors
(chart, all)
src/core/core.plugins.js:101
↓ 2 callers
Method
_dataCheck
* @private
src/core/core.datasetController.js:365
↓ 2 callers
Function
_descriptors
( proxy: ResolverCache, defaults: DescriptorDefaults = {scriptable: true, indexable: true} )
src/helpers/helpers.config.ts:200
↓ 2 callers
Method
_eventHandler
* @private
src/core/core.controller.js:1163
↓ 2 callers
Function
_filterBetween
(values: number[], min: number, max: number)
src/helpers/helpers.collection.ts:84
↓ 2 callers
Method
_getAxis
()
src/controllers/controller.bar.js:499
↓ 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
← previous
next →
101–200 of 1,409, ranked by callers