MCPcopy Create free account

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

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

↓ 76 callersMethodgetDatasetMeta
(datasetIndex)
src/core/core.controller.js:908
↓ 62 callersMethodupdate
* Takes two parameters: width and height. * @param width * @param height
src/types/layout.ts:64
↓ 32 callersFunctionisObject
(value: unknown)
src/helpers/helpers.core.ts:53
↓ 29 callersFunctionisArray
(value: unknown)
src/helpers/helpers.core.ts:37
↓ 29 callersFunctionvalueOrDefault
(value: T | undefined, defaultValue: T)
src/helpers/helpers.core.ts:82
↓ 28 callersMethoddraw
* Draws the element
src/types/layout.ts:50
↓ 28 callersMethodgetContext
* @protected
src/core/core.scale.js:969
↓ 26 callersFunctionisNullOrUndef
(value: unknown)
src/helpers/helpers.core.ts:28
↓ 25 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.ts:1371
↓ 23 callersMethodget
(scope: string)
src/types/index.ts:720
↓ 23 callersMethodgetParsed
* @protected
src/core/core.datasetController.js:595
↓ 21 callersMethodregister
* @param {ChartComponent} item * @returns {string} The scope where items defaults were registered to.
src/types/index.ts:1574
↓ 18 callersMethodgetProps
(props: string[], final?: boolean)
src/core/core.element.ts:33
↓ 18 callersMethodset
(values: AnyObject)
src/types/index.ts:718
↓ 18 callersFunctiontoFont
(options: Partial<FontSpec>, fallback?: Partial<FontSpec>)
src/helpers/helpers.options.ts:115
↓ 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:1214
↓ 17 callersFunctiontoPadding
(value?: number | TRBL)
src/helpers/helpers.options.ts:98
↓ 16 callersMethodadd
(...args: ChartComponentLike[])
src/types/index.ts:1183
↓ 16 callersMethodresolveDataElementOptions
* @param {number} index * @param {string} [mode] * @protected
src/controllers/controller.bubble.js:161
↓ 16 callersMethodsetContext
(ctx: AnyObject)
src/helpers/helpers.config.types.ts:53
↓ 15 callersFunctioneach
( loopable: T[] | Record<string, T>, fn: (this: TA, v: T, i: any) => void, thisArg?: TA, reverse?: boo
src/helpers/helpers.core.ts:135
↓ 15 callersMethodgetDataVisibility
(index)
src/core/core.controller.js:964
↓ 14 callersMethodgetDataset
()
src/core/core.datasetController.js:331
↓ 14 callersMethodgetLabelForValue
* Used to get the label to display in the tooltip for the given value * @param {*} value * @return {string}
src/types/index.ts:1357
↓ 13 callersMethodconfigure
()
src/types/index.ts:1397
↓ 13 callersMethodgetCenterPoint
(useFinalPosition?: boolean)
src/types/index.ts:1857
↓ 13 callersFunctionresolve
(inputs: Array<unknown>, context?: object, index?: number, info?: { cacheable: boolean })
src/helpers/helpers.options.ts:154
↓ 12 callersMethodapply
(appliers: Array<(defaults: Defaults) => void>)
src/core/core.defaults.ts:246
↓ 12 callersMethodisHorizontal
* returns true if the layout item is horizontal (ie. top or bottom)
src/types/layout.ts:58
↓ 12 callersMethodisHorizontal
* @return {boolean}
src/core/core.scale.js:765
↓ 12 callersMethodtoggleDataVisibility
(index)
src/core/core.controller.js:960
↓ 11 callersMethoddestroy
()
src/core/core.controller.js:1019
↓ 11 callersMethodgetLabels
()
src/types/index.ts:1394
↓ 11 callersMethodhas
* Counts number of active animations for the chart * @param {Chart} chart
src/core/core.animator.js:155
↓ 11 callersFunctiontoRadians
(degrees: number)
src/helpers/helpers.math.ts:95
↓ 11 callersMethodupdate
(width: number, height: number, margins?: TRBL)
src/core/core.layouts.ts:14
↓ 10 callersMethod_each
* @internal
src/core/core.registry.ts:87
↓ 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:1310
↓ 10 callersFunction_limitValue
(value: number, min: number, max: number)
src/helpers/helpers.math.ts:189
↓ 10 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:780
↓ 10 callersMethodupdateElement
* Utility for updating an element with new properties, using animations when appropriate. * @protected
src/core/core.datasetController.js:934
↓ 9 callersMethod_getAnims
* @private
src/core/core.animator.js:112
↓ 9 callersMethod_update
* @private
src/core/core.animator.js:57
↓ 9 callersFunctioncreateContext
(parentContext: object, context: object)
src/helpers/helpers.options.ts:204
↓ 9 callersMethodgetMinMax
(canStack: boolean)
src/types/index.ts:1392
↓ 9 callersMethodhandleEvent
* Handle an event * @param e - The event to handle
src/plugins/plugin.legend.ts:720
↓ 9 callersMethodisDatasetVisible
(datasetIndex)
src/core/core.controller.js:942
↓ 9 callersFunctionisFunction
(value: unknown)
src/helpers/helpers.core.ts:395
↓ 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.ts:1344
↓ 8 callersFunctiongetRelativePosition
( event: Event | ChartEvent | TouchEvent | MouseEvent, chart: Chart | PrivateChart )
src/helpers/helpers.dom.ts:111
↓ 8 callersMethodgetScale
(id: string)
src/types/index.ts:1194
↓ 8 callersMethodgetSortedVisibleDatasetMetas
* Gets the visible dataset metas in drawing order * @return {object[]}
src/core/core.controller.js:835
↓ 8 callersFunctiontoTRBLCorners
(value: number | TRBLCorners)
src/helpers/helpers.options.ts:86
↓ 8 callersMethodunregister
(item: ChartComponent)
src/types/index.ts:1576
↓ 8 callersMethodx
(x: number)
src/helpers/helpers.rtl.ts:4
↓ 7 callersFunctionabstract
()
src/core/core.adapters.ts:65
↓ 7 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.ts:1387
↓ 7 callersMethodgetUserBounds
()
src/types/index.ts:1391
↓ 7 callersMethodhide
(datasetIndex, dataIndex)
src/core/core.controller.js:987
↓ 7 callersMethodparse
(raw: unknown, index?: number)
src/types/index.ts:1390
↓ 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:451
↓ 7 callersMethodupdateIndex
(datasetIndex)
src/core/core.datasetController.js:304
↓ 6 callersFunction_attachContext
( proxy: ResolverProxy<T, R>, context: AnyObject, subProxy?: ContextProxy<T, R>, descriptorDefaults?:
src/helpers/helpers.config.ts:120
↓ 6 callersMethod_getLabelSizes
* @return {{ first: object, last: object, widest: object, highest: object, widths: Array, heights: array }} * @private
src/core/core.scale.js:805
↓ 6 callersFunction_isPointInArea
( point: Point, area: TRBL, margin?: number )
src/helpers/helpers.canvas.ts:319
↓ 6 callersFunction_normalizeAngle
(a: number)
src/helpers/helpers.math.ts:163
↓ 6 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
↓ 6 callersMethodcreateResolver
* @param {object[]} scopes * @param {object} [context] * @param {string[]} [prefixes] * @param {{scriptable: boolean, indexable: boolean, all
src/core/core.config.js:492
↓ 6 callersMethodformat
(value: number, format?: string)
src/types/index.ts:3531
↓ 6 callersMethodgetActiveElements
()
src/types/index.ts:2710
↓ 6 callersMethodgetDecimalForPixel
* @param {number} pixel * @return {number}
src/types/index.ts:1337
↓ 6 callersMethodgetPlugin
(id: string)
src/types/index.ts:1193
↓ 6 callersFunctiongetRtlAdapter
(rtl: boolean, rectX: number, width: number)
src/helpers/helpers.rtl.ts:53
↓ 6 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.ts:1379
↓ 6 callersMethodinRange
(mouseX: number, mouseY: number, useFinalPosition?: boolean)
src/types/index.ts:1854
↓ 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:483
↓ 6 callersFunctionmerge
(target: T, source: AnyObject[], options?: MergeOptions)
src/helpers/helpers.core.ts:261
↓ 6 callersMethodoverride
(scope: string, values: AnyObject)
src/types/index.ts:723
↓ 6 callersMethodremoveEventListener
* @param {Chart} chart * @param {string} type
src/platform/platform.dom.js:350
↓ 6 callersMethodreset
* @desc Called during chart reset * @param {Chart} chart - The chart instance. * @param {object} args - The call arguments. * @param {object}
src/types/index.ts:942
↓ 6 callersFunctionresolveObjectKey
(obj: AnyObject, key: string)
src/helpers/helpers.core.ts:380
↓ 6 callersMethodsetActiveElements
(active: ActiveDataPoint[], eventPosition: Point)
src/types/index.ts:2711
↓ 6 callersMethodtextAlign
(align: 'center' | 'left' | 'right')
src/helpers/helpers.rtl.ts:6
↓ 5 callersFunction_createResolver
( scopes: T, prefixes = [''], rootScopes?: R, fallback?: ResolverObjectKey, getTarget = () => scopes
src/helpers/helpers.config.ts:27
↓ 5 callersMethod_isVisible
* @return {boolean} * @private
src/core/core.scale.js:1008
↓ 5 callersFunction_lookupByKey
( table: Record<string, number>[], key: string, value: number, last?: boolean )
src/helpers/helpers.collection.ts:49
↓ 5 callersMethod_resolveTickFontOptions
* @param {number} index * @return {object} * @protected
src/core/core.scale.js:1705
↓ 5 callersMethod_sync
* @private
src/core/core.datasetController.js:1133
↓ 5 callersFunctionclearStacks
(meta, items)
src/core/core.datasetController.js:208
↓ 5 callersFunctionformatNumber
(num: number, locale: string, options?: Intl.NumberFormatOptions)
src/helpers/helpers.intl.ts:15
↓ 5 callersFunctiongetComputedStyle
(element: HTMLElement)
src/helpers/helpers.dom.ts:48
↓ 5 callersMethodgetContext
* @protected
src/plugins/plugin.tooltip.js:566
↓ 5 callersFunctiongetHoverColor
(value)
src/helpers/helpers.color.ts:28
↓ 5 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:413
↓ 5 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.ts:1351
↓ 5 callersFunctionisNumber
(n: unknown)
src/helpers/helpers.math.ts:67
↓ 5 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:895
↓ 5 callersFunctionmergeIf
(target: T, source: AnyObject[])
src/helpers/helpers.core.ts:302
↓ 5 callersMethodremove
(...args: ChartComponentLike[])
src/types/index.ts:1184
next →1–100 of 1,573, ranked by callers