MCPcopy Create free account

hub / github.com/chartjs/Chart.js / functions

Functions1,409 in github.com/chartjs/Chart.js

↓ 4 callersMethod_get
* @private
src/core/core.registry.js:175
↓ 4 callersMethod_getSharedOptions
* @todo v4, rename to getSharedOptions and remove excess functions
src/core/core.datasetController.js:885
↓ 4 callersFunction_isBetween
(value: number, start: number, end: number, epsilon = 1e-6)
src/helpers/helpers.math.ts:205
↓ 4 callersFunction_lookup
( table: unknown[], value: number, cmp?: (value: number) => boolean )
src/helpers/helpers.collection.ts:20
↓ 4 callersFunction_lookupByKey
( table: Record<string, number>[], key: string, value: number, last?: boolean )
src/helpers/helpers.collection.ts:50
↓ 4 callersMethod_resolveAnimations
* @private
src/core/core.datasetController.js:841
↓ 4 callersMethod_setStyle
* @private
src/core/core.datasetController.js:919
↓ 4 callersMethodactive
()
src/core/core.animation.js:47
↓ 4 callersMethodaddEventListener
* * @param {Chart} chart * @param {string} type * @param {function} listener
src/platform/platform.dom.js:331
↓ 4 callersFunctioncachedKeys
(cacheKey, generate)
src/core/core.config.js:141
↓ 4 callersFunctionclipArea
(ctx: CanvasRenderingContext2D, area: TRBL)
src/helpers/helpers.canvas.ts:328
↓ 4 callersFunctiondefined
(value: unknown)
src/helpers/helpers.core.ts:391
↓ 4 callersFunctionevaluateInteractionItems
* 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 callersMethodfillText
(x, y, legendItem)
src/plugins/plugin.legend.js:367
↓ 4 callersFunctionfn
()
test/specs/helpers.config.tests.js:848
↓ 4 callersFunctiongetAlignedX
(tooltip, align, options)
src/plugins/plugin.tooltip.js:331
↓ 4 callersFunctiongetComputedStyle
(element: HTMLElement)
src/helpers/helpers.dom.ts:45
↓ 4 callersMethodgetDistanceFromCenterForValue
(value)
src/scales/scale.radialLinear.js:489
↓ 4 callersMethodgetOptionScopes
* 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 callersMethodgetPixelForTick
* 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 callersMethodgetPlugin
(id: string)
src/types/index.d.ts:1188
↓ 4 callersMethodgetPointPosition
(index: number, distanceFromCenter: number)
src/types/index.d.ts:3684
↓ 4 callersFunctiongetTickMarkLength
* @param {object} options
src/core/core.scale.js:88
↓ 4 callersMethodhide
(datasetIndex, dataIndex)
src/core/core.controller.js:908
↓ 4 callersMethodisPointInArea
* 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 callersFunctionlog10Floor
src/scales/scale.logarithmic.js:8
↓ 4 callersFunctionpushOrConcat
(base, toPush)
src/plugins/plugin.tooltip.js:94
↓ 4 callersMethodremove
(...args: ChartComponentLike[])
src/types/index.d.ts:1179
↓ 4 callersMethodrunning
(chart)
src/core/core.animator.js:174
↓ 4 callersMethodsetActiveElements
(active: ActiveDataPoint[], eventPosition: Point)
src/types/index.d.ts:2699
↓ 4 callersMethodsize
(options?: Partial<PointOptions & PointHoverOptions>)
src/elements/element.point.ts:81
↓ 4 callersFunctionsplitNewlines
* 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 callersFunctiontoDegrees
(radians)
test/specs/scale.radialLinear.tests.js:643
↓ 4 callersFunctionunclipArea
(ctx: CanvasRenderingContext2D)
src/helpers/helpers.canvas.ts:335
↓ 4 callersMethodunregister
(item: ChartComponent)
src/types/index.d.ts:1571
↓ 3 callersFunction_boundSegment
(segment, points, bounds)
src/helpers/helpers.segment.js:77
↓ 3 callersFunction_capitalize
(str: string)
src/helpers/helpers.core.ts:386
↓ 3 callersFunction_drawfill
(ctx, source, area)
src/plugins/plugin.filler/filler.drawing.js:5
↓ 3 callersFunction_getParentNode
(domNode: HTMLCanvasElement)
src/helpers/helpers.dom.ts:16
↓ 3 callersFunction_getSegmentMethod
* @param {LineElement} line - the line * @returns {function} * @private
src/elements/element.line.js:185
↓ 3 callersMethod_getSortedDatasetMetas
* @private
src/core/core.controller.js:737
↓ 3 callersMethod_getStackCount
* Returns the effective number of stacks based on groups and bar visibility. * @private
src/controllers/controller.bar.js:485
↓ 3 callersFunction_isDomSupported
()
src/helpers/helpers.dom.ts:9
↓ 3 callersMethod_notify
(resolved)
src/core/core.animation.js:112
↓ 3 callersFunction_readValueToProps
(value: number | Record<string, number>, props: string[] | Record<string, string>)
src/helpers/helpers.options.ts:51
↓ 3 callersMethod_resize
(width, height)
src/core/core.controller.js:277
↓ 3 callersMethod_resolveAnimations
* @private
src/plugins/plugin.tooltip.js:507
↓ 3 callersFunction_toLeftRightCenter
(align: 'start' | 'end' | 'center')
src/helpers/helpers.extras.ts:67
↓ 3 callersMethod_updateHoverStyles
* @private
src/core/core.controller.js:1145
↓ 3 callersFunctionaddRoundedRectPath
( ctx: CanvasRenderingContext2D, rect: RoundedRect & { radius: TRBLCorners } )
src/helpers/helpers.canvas.ts:498
↓ 3 callersFunctionalmostEquals
(x: number, y: number, epsilon: number)
src/helpers/helpers.math.ts:21
↓ 3 callersMethodapplyStack
* @protected
src/core/core.datasetController.js:593
↓ 3 callersFunctioncreateSubResolver
( parentScopes: AnyObject[], resolver: ResolverCache, prop: ResolverObjectKey, value: unknown )
src/helpers/helpers.config.ts:335
↓ 3 callersMethoddescribe
(scope: string, values: AnyObject)
src/types/index.d.ts:717
↓ 3 callersMethoddiff
* 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 callersFunctionfiniteOrDefault
(value: unknown, defaultValue: number)
src/helpers/helpers.core.ts:73
↓ 3 callersMethodgetActiveElements
()
src/types/index.d.ts:2698
↓ 3 callersMethodgetContext
* @protected
src/core/core.datasetController.js:762
↓ 3 callersMethodgetDistanceFromCenterForValue
(value: number)
src/types/index.d.ts:3682
↓ 3 callersMethodgetElement
(id: string)
src/types/index.d.ts:1187
↓ 3 callersFunctiongetHoverColor
(value)
src/helpers/helpers.color.ts:28
↓ 3 callersMethodgetIndexAngle
(index: number)
src/types/index.d.ts:3681
↓ 3 callersFunctiongetIntersectItems
* 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 callersFunctiongetNearestItems
* 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 callersFunctiongetPoint
(points: SplinePoint[], i: number)
src/helpers/helpers.curve.ts:9
↓ 3 callersMethodgetPointLabelContext
(index)
src/scales/scale.radialLinear.js:511
↓ 3 callersMethodgetPointPositionForValue
(index: number, value: number)
src/types/index.d.ts:3685
↓ 3 callersFunctiongetPositionedStyle
(styles: CSSStyleDeclaration, style: string, suffix?: string)
src/helpers/helpers.dom.ts:53
↓ 3 callersFunctiongetScope
* @param {object} node * @param {string} key * @return {object}
src/core/core.defaults.js:15
↓ 3 callersMethodgetSharedOptions
* Utility for getting the options object shared between elements * @protected
src/core/core.datasetController.js:867
↓ 3 callersFunctiongetTickBackdropHeight
(opts)
src/scales/scale.radialLinear.js:9
↓ 3 callersFunctioninRange
(bar, x, y, useFinalPosition)
src/elements/element.bar.js:103
↓ 3 callersFunctioninterpolate
* 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 callersFunctionisDirectUpdateMode
(mode)
src/core/core.datasetController.js:229
↓ 3 callersFunctionisFloatBar
(custom)
src/controllers/controller.bar.js:170
↓ 3 callersFunctionisPatternOrGradient
(value: unknown)
src/helpers/helpers.color.ts:3
↓ 3 callersMethodleftForLtr
(x: number, itemWidth: number)
src/helpers/helpers.rtl.ts:6
↓ 3 callersFunctionmergeIf
(target: T, source: AnyObject[])
src/helpers/helpers.core.ts:301
↓ 3 callersFunctionneedsSubResolver
(prop: string, value: unknown)
src/helpers/helpers.config.ts:215
↓ 3 callersMethodpathSegment
(ctx: CanvasRenderingContext2D, segment: Segment, params: AnyObject)
src/types/index.d.ts:2031
↓ 3 callersMethodrender
()
src/core/core.controller.js:683
↓ 3 callersMethodresize
* Resize the chart to its container or to explicit dimensions. * @param {number} [width] * @param {number} [height]
src/core/core.controller.js:269
↓ 3 callersMethodresolveDataElementOptions
* @param {number} index * @param {string} [mode] * @protected
src/core/core.datasetController.js:797
↓ 3 callersMethodroute
* 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 callersFunctionset
(root, scope, values)
src/core/core.defaults.js:27
↓ 3 callersMethodsetDatasetVisibility
(datasetIndex, visible)
src/core/core.controller.js:876
↓ 3 callersMethodstart
* @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 callersMethodtick
(date)
src/core/core.animation.js:76
↓ 2 callersFunction_arrayUnique
(items: T[])
src/helpers/helpers.collection.ts:184
↓ 2 callersFunction_boundSegments
(line, bounds)
src/helpers/helpers.segment.js:141
↓ 2 callersMethod_createAnimations
* @private
src/core/core.animations.js:68
↓ 2 callersFunction_createBoundaryLine
(boundary, line)
src/plugins/plugin.filler/filler.helper.js:16
↓ 2 callersMethod_createDescriptors
(chart, all)
src/core/core.plugins.js:101
↓ 2 callersMethod_dataCheck
* @private
src/core/core.datasetController.js:365
↓ 2 callersFunction_descriptors
( proxy: ResolverCache, defaults: DescriptorDefaults = {scriptable: true, indexable: true} )
src/helpers/helpers.config.ts:200
↓ 2 callersMethod_eventHandler
* @private
src/core/core.controller.js:1163
↓ 2 callersFunction_filterBetween
(values: number[], min: number, max: number)
src/helpers/helpers.collection.ts:84
↓ 2 callersMethod_getAxis
()
src/controllers/controller.bar.js:499
↓ 2 callersFunction_getBounds
(property, first, last, loop)
src/plugins/plugin.filler/filler.segment.js:51
↓ 2 callersMethod_getCircumference
* @private
src/controllers/controller.doughnut.js:179
← previousnext →101–200 of 1,409, ranked by callers