MCPcopy Create free account

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

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

↓ 59 callersMethodgetDatasetMeta
(datasetIndex)
src/core/core.controller.js:829
↓ 56 callersMethodupdate
* Takes two parameters: width and height. * @param width * @param height
src/types/layout.d.ts:64
↓ 30 callersFunctionvalueOrDefault
(value: T | undefined, defaultValue: T)
src/helpers/helpers.core.ts:82
↓ 28 callersFunctionisObject
(value: unknown)
src/helpers/helpers.core.ts:53
↓ 27 callersFunctionisNullOrUndef
(value: unknown)
src/helpers/helpers.core.ts:28
↓ 26 callersMethoddraw
* Draws the element
src/types/layout.d.ts:50
↓ 26 callersMethodgetContext
* @protected
src/core/core.scale.js:961
↓ 24 callersMethodgetParsed
* @protected
src/core/core.datasetController.js:579
↓ 21 callersFunctionisArray
(value: unknown)
src/helpers/helpers.core.ts:37
↓ 18 callersFunctiontoFont
(options: Partial<FontSpec>, fallback?: Partial<FontSpec>)
src/helpers/helpers.options.ts:115
↓ 17 callersMethodgetPixelForValue
* 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 corn
src/types/index.d.ts:1366
↓ 17 callersMethodnotifyPlugins
* Calls enabled plugins on the specified hook and with the given args. * This method immediately returns as soon as a plugin explicitly returns fals
src/core/core.controller.js:1129
↓ 17 callersMethodregister
* @param {ChartComponent} item * @returns {string} The scope where items defaults were registered to.
src/types/index.d.ts:1569
↓ 16 callersFunctioneach
( loopable: T[] | Record<string, T>, fn: (this: TA, v: T, i: any) => void, thisArg?: TA, reverse?: boo
src/helpers/helpers.core.ts:134
↓ 16 callersMethodget
(scope: string)
src/types/index.d.ts:715
↓ 16 callersMethodgetProps
(props: string[], final?: boolean)
src/core/core.element.ts:33
↓ 16 callersMethodresolveDataElementOptions
* @param {number} index * @param {string} [mode] * @protected
src/controllers/controller.bubble.js:151
↓ 16 callersMethodset
(values: AnyObject)
src/types/index.d.ts:713
↓ 16 callersFunctiontoPadding
(value?: number | TRBL)
src/helpers/helpers.options.ts:98
↓ 15 callersMethodsetContext
(ctx: AnyObject)
src/helpers/helpers.config.types.ts:53
↓ 14 callersMethodadd
(...args: ChartComponentLike[])
src/types/index.d.ts:1178
↓ 14 callersFunctionresolve
(inputs: Array<unknown>, context?: object, index?: number, info?: { cacheable: boolean })
src/helpers/helpers.options.ts:154
↓ 13 callersMethodconfigure
()
src/types/index.d.ts:1392
↓ 13 callersMethodgetLabels
()
src/types/index.d.ts:1389
↓ 12 callersMethodgetDataVisibility
(index)
src/core/core.controller.js:885
↓ 12 callersMethodgetDataset
()
src/core/core.datasetController.js:319
↓ 12 callersMethodgetLabelForValue
* Used to get the label to display in the tooltip for the given value * @param {*} value * @return {string}
src/types/index.d.ts:1352
↓ 12 callersMethodisHorizontal
* @return {boolean}
src/core/core.scale.js:760
↓ 11 callersMethodisHorizontal
* returns true if the layout item is horizontal (ie. top or bottom)
src/types/layout.d.ts:58
↓ 11 callersFunctiontoRadians
(degrees: number)
src/helpers/helpers.math.ts:95
↓ 11 callersMethodtoggleDataVisibility
(index)
src/core/core.controller.js:881
↓ 10 callersMethod_each
* @private
src/core/core.registry.js:124
↓ 10 callersMethod_handleEvent
* Handle an event * @param {ChartEvent} e the event to handle * @param {boolean} [replay] - true if the event was replayed by `update` * @param
src/core/core.controller.js:1196
↓ 10 callersFunction_limitValue
(value: number, min: number, max: number)
src/helpers/helpers.math.ts:186
↓ 10 callersMethodapply
(appliers)
src/core/core.defaults.js:159
↓ 10 callersMethodupdateElement
* Utility for updating an element with new properties, using animations when appropriate. * @protected
src/core/core.datasetController.js:898
↓ 9 callersMethod_getAnims
* @private
src/core/core.animator.js:112
↓ 9 callersFunctioncreateContext
(parentContext: object, context: object)
src/helpers/helpers.options.ts:204
↓ 9 callersMethodgetMinMax
(canStack: boolean)
src/types/index.d.ts:1387
↓ 9 callersMethodhandleEvent
* Handle an event * @param {ChartEvent} e - The event to handle
src/plugins/plugin.legend.js:528
↓ 8 callersMethod_update
* @private
src/core/core.animator.js:57
↓ 8 callersMethoddestroy
()
src/core/core.controller.js:937
↓ 8 callersMethodgetCenterPoint
(useFinalPosition?: boolean)
src/types/index.d.ts:1851
↓ 8 callersMethodgetPixelForDecimal
* Utility for getting the pixel location of a percentage of scale * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {nu
src/types/index.d.ts:1339
↓ 8 callersFunctiongetRelativePosition
( event: Event | ChartEvent | TouchEvent | MouseEvent, chart: Chart | PrivateChart )
src/helpers/helpers.dom.ts:105
↓ 8 callersMethodgetSortedVisibleDatasetMetas
* Gets the visible dataset metas in drawing order * @return {object[]}
src/core/core.controller.js:756
↓ 8 callersMethodgetStyle
* Returns a set of predefined style properties that should be used to represent the dataset * or the data if the index is specified * @param {numb
src/core/core.datasetController.js:752
↓ 8 callersMethodisDatasetVisible
(datasetIndex)
src/core/core.controller.js:863
↓ 8 callersFunctiontoTRBLCorners
(value: number | TRBLCorners)
src/helpers/helpers.options.ts:86
↓ 7 callersFunctionabstract
()
src/core/core.adapters.ts:65
↓ 7 callersMethodgetScale
(id: string)
src/types/index.d.ts:1189
↓ 7 callersMethodgetUserBounds
()
src/types/index.d.ts:1386
↓ 7 callersMethodhas
* Counts number of active animations for the chart * @param {Chart} chart
src/core/core.animator.js:155
↓ 7 callersFunctionisFunction
(value: unknown)
src/helpers/helpers.core.ts:393
↓ 7 callersMethodparse
(raw: unknown, index?: number)
src/types/index.d.ts:1385
↓ 7 callersMethodparse
* Parses the given `value` and return the associated timestamp. * @param value - the value to parse (usually comes from the data) * @param [form
src/core/core.adapters.ts:28
↓ 7 callersFunctionrenderText
( ctx: CanvasRenderingContext2D, text: string | string[], x: number, y: number, font: CanvasFontSpec
src/helpers/helpers.canvas.ts:449
↓ 7 callersMethodreset
* @desc Called during chart reset * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @param {object}
src/types/index.d.ts:937
↓ 7 callersMethodupdateIndex
(datasetIndex)
src/core/core.datasetController.js:292
↓ 7 callersMethodx
(x: number)
src/helpers/helpers.rtl.ts:2
↓ 6 callersFunction_normalizeAngle
(a: number)
src/helpers/helpers.math.ts:160
↓ 6 callersMethodcreateResolver
* @param {object[]} scopes * @param {object} [context] * @param {string[]} [prefixes] * @param {{scriptable: boolean, indexable: boolean, all
src/core/core.config.js:375
↓ 6 callersMethodgetDecimalForPixel
* @param {number} pixel * @return {number}
src/types/index.d.ts:1332
↓ 6 callersFunctiongetRtlAdapter
(rtl: boolean, rectX: number, width: number)
src/helpers/helpers.rtl.ts:51
↓ 6 callersFunctioninvokeCallbackWithFallback
* Invoke callback from object with context and arguments. * If callback returns `undefined`, then will be invoked default callback. * @param {Record
src/plugins/plugin.tooltip.js:447
↓ 6 callersFunctionmerge
(target: T, source: AnyObject[], options?: MergeOptions)
src/helpers/helpers.core.ts:260
↓ 6 callersMethodremoveEventListener
* @param {Chart} chart * @param {string} type
src/platform/platform.dom.js:350
↓ 6 callersFunctionresolveObjectKey
(obj: AnyObject, key: string)
src/helpers/helpers.core.ts:378
↓ 6 callersMethodtextAlign
(align: 'center' | 'left' | 'right')
src/helpers/helpers.rtl.ts:4
↓ 6 callersMethodtooltipPosition
(useFinalPosition: boolean)
src/core/core.element.ts:17
↓ 5 callersFunction_alignStartEnd
(align: 'start' | 'end' | 'center', start: number, end: number)
src/helpers/helpers.extras.ts:73
↓ 5 callersFunction_attachContext
( proxy: ResolverProxy<T, R>, context: AnyObject, subProxy?: ResolverProxy<T, R>, descriptorDefaults?:
src/helpers/helpers.config.ts:118
↓ 5 callersMethod_getLabelSizes
* @return {{ first: object, last: object, widest: object, highest: object, widths: Array, heights: array }} * @private
src/core/core.scale.js:797
↓ 5 callersFunction_isPointInArea
( point: Point, area: TRBL, margin?: number )
src/helpers/helpers.canvas.ts:317
↓ 5 callersMethod_isVisible
* @return {boolean} * @private
src/core/core.scale.js:1000
↓ 5 callersMethod_resolveTickFontOptions
* @param {number} index * @return {object} * @protected
src/core/core.scale.js:1700
↓ 5 callersMethod_sync
* @private
src/core/core.datasetController.js:1041
↓ 5 callersMethodadd
* Adds the specified `amount` of `unit` to the given `timestamp`. * @param timestamp - the input timestamp * @param amount - the amount to add
src/core/core.adapters.ts:41
↓ 5 callersFunctionclearStacks
(meta, items)
src/core/core.datasetController.js:208
↓ 5 callersMethodfirst
()
src/types/index.d.ts:2028
↓ 5 callersMethodformat
(value: number, format?: string)
src/types/index.d.ts:3518
↓ 5 callersFunctionformatNumber
(num: number, locale: string, options?: Intl.NumberFormatOptions)
src/helpers/helpers.intl.ts:15
↓ 5 callersMethodgetBasePixel
* Returns the pixel for the minimum chart value * The coordinate (0, 0) is at the upper-left corner of the canvas * @return {number}
src/types/index.d.ts:1382
↓ 5 callersMethodgetContext
* @protected
src/plugins/plugin.tooltip.js:528
↓ 5 callersMethodgetMatchingVisibleMetas
(type?: string)
src/types/index.d.ts:1322
↓ 5 callersMethodgetValueForPixel
* Used to get the data value from a given pixel. This is the inverse of getPixelForValue * The coordinate (0, 0) is at the upper-left corner of the
src/types/index.d.ts:1374
↓ 5 callersMethodinRange
(mouseX: number, mouseY: number, useFinalPosition?: boolean)
src/types/index.d.ts:1848
↓ 5 callersMethodisHorizontal
()
src/plugins/plugin.legend.js:265
↓ 5 callersFunctionisNumber
(n: unknown)
src/helpers/helpers.math.ts:67
↓ 5 callersMethodoverride
(scope: string, values: AnyObject)
src/types/index.d.ts:718
↓ 5 callersMethodresolveDatasetElementOptions
* @param {string} [mode] * @protected
src/core/core.datasetController.js:788
↓ 5 callersMethodstartOf
* 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
↓ 4 callersFunction_alignPixel
(chart: Chart, pixel: number, width: number)
src/helpers/helpers.canvas.ts:125
↓ 4 callersFunction_angleBetween
(angle: number, start: number, end: number, sameAngleIsFullCircle?: boolean)
src/helpers/helpers.math.ts:167
↓ 4 callersMethod_callHooks
(name)
src/core/core.scale.js:534
↓ 4 callersMethod_computeTitleHeight
* @private
src/plugins/plugin.legend.js:493
↓ 4 callersFunction_createResolver
( scopes: T, prefixes = [''], rootScopes?: R, fallback?: ResolverObjectKey, getTarget = () => scopes
src/helpers/helpers.config.ts:27
↓ 4 callersMethod_destroyDatasetMeta
* @private
src/core/core.controller.js:919
↓ 4 callersFunction_elementsEqual
(a0: ActiveDataPoint[], a1: ActiveDataPoint[])
src/helpers/helpers.core.ts:167
↓ 4 callersFunction_findSegmentEnd
(start, end, points)
src/plugins/plugin.filler/filler.segment.js:84
next →1–100 of 1,409, ranked by callers