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
↓ 5 callers
Method
resolveDatasetElementOptions
* @param {string} [mode] * @protected
src/core/core.datasetController.js:816
↓ 5 callers
Method
startOf
* Returns start of `unit` for the given `timestamp`. * @param timestamp - the input timestamp * @param unit - the unit as string * @param [we
src/core/core.adapters.ts:56
↓ 5 callers
Method
stop
* @desc Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled. * @param {Chart} chart - The chart instance.
src/types/index.ts:893
↓ 5 callers
Method
tooltipPosition
(useFinalPosition: boolean)
src/core/core.element.ts:17
↓ 4 callers
Function
_alignPixel
(chart: Chart, pixel: number, width: number)
src/helpers/helpers.canvas.ts:125
↓ 4 callers
Function
_alignStartEnd
(align: 'start' | 'end' | 'center', start: number, end: number)
src/helpers/helpers.extras.ts:76
↓ 4 callers
Function
_angleBetween
(angle: number, start: number, end: number, sameAngleIsFullCircle?: boolean)
src/helpers/helpers.math.ts:170
↓ 4 callers
Method
_callHooks
(name)
src/core/core.scale.js:539
↓ 4 callers
Method
_computeTitleHeight
* @private
src/plugins/plugin.legend.ts:666
↓ 4 callers
Method
_destroyDatasetMeta
* @private
src/core/core.controller.js:998
↓ 4 callers
Function
_elementsEqual
(a0: ActiveDataPoint[], a1: ActiveDataPoint[])
src/helpers/helpers.core.ts:168
↓ 4 callers
Method
_filterActive
* Leaves out the items whose dataset or data item is hidden, or whose data item was removed: * hidden data cannot be active. The tooltip uses it fo
src/core/core.controller.js:1270
↓ 4 callers
Function
_findSegmentEnd
(start, end, points)
src/plugins/plugin.filler/filler.segment.js:84
↓ 4 callers
Method
_get
* @internal
src/core/core.registry.ts:140
↓ 4 callers
Method
_getAreaCenter
* The centre of the part of the bar inside the chart area, which the interaction modes * measure to and the tooltip points at when the bar is cut o
src/elements/element.bar.ts:241
↓ 4 callers
Function
_getParentNode
(domNode: HTMLCanvasElement)
src/helpers/helpers.dom.ts:16
↓ 4 callers
Method
_getSharedOptions
* @todo v4, rename to getSharedOptions and remove excess functions
src/core/core.datasetController.js:921
↓ 4 callers
Method
_getSortedDatasetMetas
* @private
src/core/core.controller.js:816
↓ 4 callers
Function
_hasOwn
(object: object, key: PropertyKey)
src/helpers/helpers.core.ts:446
↓ 4 callers
Function
_isBetween
(value: number, start: number, end: number, epsilon = 1e-6)
src/helpers/helpers.math.ts:208
↓ 4 callers
Function
_isRadialScale
(scale: {getPointPositionForValue?: unknown} | undefined)
src/helpers/helpers.core.ts:456
↓ 4 callers
Method
_resolveAnimations
* @private
src/core/core.datasetController.js:869
↓ 4 callers
Method
_setStyle
* @private
src/core/core.datasetController.js:955
↓ 4 callers
Method
active
()
src/core/core.animation.ts:67
↓ 4 callers
Method
addEventListener
* * @param {Chart} chart * @param {string} type * @param {function} listener
src/platform/platform.dom.js:331
↓ 4 callers
Function
autoSkip
(scale, ticks)
src/core/core.scale.autoskip.js:16
↓ 4 callers
Function
cachedKeys
(cacheKey, generate)
src/core/core.config.js:233
↓ 4 callers
Function
clipArea
(ctx: CanvasRenderingContext2D, area: TRBL)
src/helpers/helpers.canvas.ts:330
↓ 4 callers
Function
defined
(value: unknown)
src/helpers/helpers.core.ts:393
↓ 4 callers
Method
describe
(scope: string, values: AnyObject)
src/types/index.ts:722
↓ 4 callers
Function
evaluateInteractionItems
* Helper function to select candidate elements for interaction * @param chart - the chart * @param axis - the axis mode. x|y|xy|r * @param position
src/core/core.interaction.ts:97
↓ 4 callers
Function
finiteOrDefault
(value: unknown, defaultValue: number)
src/helpers/helpers.core.ts:73
↓ 4 callers
Function
fn
()
test/specs/helpers.config.unit.spec.js:977
↓ 4 callers
Function
getAlignedX
(tooltip, align, options)
src/plugins/plugin.tooltip.js:367
↓ 4 callers
Method
getController
(id: string)
src/types/index.ts:1191
↓ 4 callers
Method
getDistanceFromCenterForValue
(value)
src/scales/scale.radialLinear.js:489
↓ 4 callers
Method
getElement
(id: string)
src/types/index.ts:1192
↓ 4 callers
Method
getMatchingVisibleMetas
(type?: string)
src/types/index.ts:1327
↓ 4 callers
Method
getPointPosition
(index: number, distanceFromCenter: number)
src/types/index.ts:3697
↓ 4 callers
Function
getPositionedStyle
(styles: CSSStyleDeclaration, style: string, suffix?: string)
src/helpers/helpers.dom.ts:59
↓ 4 callers
Method
getSharedOptions
* Utility for getting the options object shared between elements * @protected
src/core/core.datasetController.js:903
↓ 4 callers
Function
getTickMarkLength
* @param {object} options
src/core/core.scale.js:88
↓ 4 callers
Method
isHorizontal
()
src/plugins/plugin.legend.ts:499
↓ 4 callers
Method
leftForLtr
(x: number, itemWidth: number)
src/helpers/helpers.rtl.ts:8
↓ 4 callers
Function
log10Floor
src/scales/scale.logarithmic.js:8
↓ 4 callers
Method
pathSegment
(ctx: CanvasRenderingContext2D, segment: Segment, params: AnyObject)
src/types/index.ts:2037
↓ 4 callers
Function
pushOrConcat
(base, toPush)
src/plugins/plugin.tooltip.js:130
↓ 4 callers
Method
render
()
src/core/core.controller.js:762
↓ 4 callers
Method
running
(chart)
src/core/core.animator.js:174
↓ 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:149
↓ 4 callers
Method
tick
(date: number)
src/core/core.animation.ts:96
↓ 4 callers
Function
toDegrees
(radians)
test/specs/scale.radialLinear.spec.js:670
↓ 4 callers
Function
unclipArea
(ctx: CanvasRenderingContext2D)
src/helpers/helpers.canvas.ts:337
↓ 3 callers
Function
_boundSegment
( segment: {start: number, end: number, loop: boolean, style?: object}, points: PointElement[], bounds?:
src/helpers/helpers.segment.ts:99
↓ 3 callers
Function
_capitalize
(str: string)
src/helpers/helpers.core.ts:388
↓ 3 callers
Function
_descriptors
( proxy: ResolverCache, defaults: DescriptorDefaults = {scriptable: true, indexable: true} )
src/helpers/helpers.config.ts:206
↓ 3 callers
Function
_drawfill
(ctx, source, area)
src/plugins/plugin.filler/filler.drawing.js:5
↓ 3 callers
Function
_getSegmentMethod
* @param line - the line * @private
src/elements/element.line.ts:197
↓ 3 callers
Method
_getStackCount
* Returns the effective number of stacks based on groups and bar visibility. * @internal
src/controllers/controller.bar.ts:599
↓ 3 callers
Function
_isDomSupported
()
src/helpers/helpers.dom.ts:9
↓ 3 callers
Method
_notify
@internal
src/core/core.animation.ts:133
↓ 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:282
↓ 3 callers
Method
_resolveAnimations
* @private
src/plugins/plugin.tooltip.js:545
↓ 3 callers
Method
_stop
()
src/core/core.controller.js:1009
↓ 3 callers
Function
_toLeftRightCenter
(align: 'start' | 'end' | 'center')
src/helpers/helpers.extras.ts:70
↓ 3 callers
Method
_updateHoverStyles
* @private
src/core/core.controller.js:1230
↓ 3 callers
Function
addRoundedRectPath
( ctx: CanvasRenderingContext2D, rect: RoundedRect & { radius: TRBLCorners } )
src/helpers/helpers.canvas.ts:500
↓ 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:609
↓ 3 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.ts:995
↓ 3 callers
Method
cancel
()
src/core/core.animation.ts:87
↓ 3 callers
Function
color
()
test/specs/helpers.config.unit.spec.js:105
↓ 3 callers
Function
createSubResolver
( parentScopes: AnyObject[], resolver: ResolverCache, prop: ResolverObjectKey, value: unknown )
src/helpers/helpers.config.ts:343
↓ 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
getBarBounds
* Helper function to get the bounds of the bar regardless of the orientation * @param bar the bar * @param [useFinalPosition] * @return bounds of t
src/elements/element.bar.ts:24
↓ 3 callers
Method
getContext
* @protected
src/core/core.datasetController.js:790
↓ 3 callers
Method
getDistanceFromCenterForValue
(value: number)
src/types/index.ts:3695
↓ 3 callers
Method
getIndexAngle
(index: number)
src/types/index.ts:3694
↓ 3 callers
Function
getIntersectItems
* Helper function to get the items that intersect the event position * @param chart - the chart * @param position - the point to be nearest to, in r
src/core/core.interaction.ts:143
↓ 3 callers
Method
getLabelAndValue
(index: number)
src/controllers/controller.bar.ts:472
↓ 3 callers
Method
getLabels
()
src/scales/scale.category.js:84
↓ 3 callers
Function
getNearestItems
* Helper function to get the items nearest to the event position considering all visible items in the chart * @param chart - the chart to look at ele
src/core/core.interaction.ts:273
↓ 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.ts:3698
↓ 3 callers
Function
getScope
(node: any, key: string)
src/core/core.defaults.ts:51
↓ 3 callers
Function
getTickBackdropHeight
(opts)
src/scales/scale.radialLinear.js:9
↓ 3 callers
Function
inRange
(bar: BarElement, x: number | null, y: number | null, useFinalPosition?: boolean)
src/elements/element.bar.ts:113
↓ 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:241
↓ 3 callers
Function
isFloatBar
(custom: BarCustom | undefined)
src/controllers/controller.bar.ts:296
↓ 3 callers
Function
isPatternOrGradient
(value: unknown)
src/helpers/helpers.color.ts:3
↓ 3 callers
Function
needsSubResolver
(prop: string, value: unknown)
src/helpers/helpers.config.ts:221
↓ 3 callers
Function
overrideTextDirection
(ctx: CanvasRenderingContext2D, direction: 'ltr' | 'rtl')
src/helpers/helpers.rtl.ts:57
↓ 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:274
↓ 3 callers
Method
resolveDataElementOptions
* @param {number} index * @param {string} [mode] * @protected
src/core/core.datasetController.js:825
↓ 3 callers
Function
restoreTextDirection
(ctx: CanvasRenderingContext2D, _original?: [string, string])
src/helpers/helpers.rtl.ts:64
↓ 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.ts:742
← previous
next →
101–200 of 1,573, ranked by callers