MCPcopy Create free account

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

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

↓ 3 callersFunctionscaleFitting
(fit)
test/specs/core.scale.autoskip.unit.spec.js:5
↓ 3 callersFunctionset
(root: object, scope: string | object, values?: object)
src/core/core.defaults.ts:70
↓ 3 callersMethodsetDatasetVisibility
(datasetIndex, visible)
src/core/core.controller.js:955
↓ 3 callersFunctionsplitScope
(scope: string)
src/core/core.defaults.ts:49
↓ 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.ts:885
↓ 3 callersFunctionunlistenArrayEvents
(array, listener)
src/helpers/helpers.collection.ts:208
↓ 3 callersMethodupdate
(mode)
src/core/core.controller.js:485
↓ 3 callersMethodupdate
(changed, replay)
src/plugins/plugin.tooltip.js:676
↓ 2 callersMethod_activeFilter
* Returns a test of whether an active item may stay active: its dataset is visible, and * its data item still exists and is not hidden. The dataset
src/core/core.controller.js:1251
↓ 2 callersFunction_arrayUnique
(items: T[])
src/helpers/helpers.collection.ts:234
↓ 2 callersFunction_boundSegments
( line: LineElement, bounds?: {property: string, start: number, end: number} )
src/helpers/helpers.segment.ts:163
↓ 2 callersMethod_calculateBarValuePixels
* Note: pixel values are not clamped to the scale area. * @internal
src/controllers/controller.bar.ts:709
↓ 2 callersMethod_createAnimations
* @private
src/core/core.animations.js:69
↓ 2 callersFunction_createBoundaryLine
(boundary, line)
src/plugins/plugin.filler/filler.helper.js:16
↓ 2 callersMethod_createDescriptors
(chart: Chart, all?: boolean)
src/core/core.plugins.ts:97
↓ 2 callersMethod_dataCheck
* @private
src/core/core.datasetController.js:377
↓ 2 callersMethod_eventHandler
* @private
src/core/core.controller.js:1277
↓ 2 callersFunction_filterBetween
(values: number[], min: number, max: number)
src/helpers/helpers.collection.ts:105
↓ 2 callersMethod_getAxis
* @internal
src/controllers/controller.bar.ts:619
↓ 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
↓ 2 callersMethod_getLabelCapacity
* @param {number} exampleTime * @return {number} * @private
src/scales/scale.time.js:619
↓ 2 callersMethod_getLegendItemAt
* @private
src/plugins/plugin.legend.ts:695
↓ 2 callersMethod_getRingWeight
* @private
src/controllers/controller.doughnut.js:399
↓ 2 callersMethod_getRingWeightOffset
* Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly
src/controllers/controller.doughnut.js:384
↓ 2 callersMethod_getRotation
* @private
src/controllers/controller.doughnut.js:172
↓ 2 callersMethod_getStackIndex
* Returns the stack index for the given dataset based on groups and bar visibility. * @param [datasetIndex] - The dataset index * @param [name] -
src/controllers/controller.bar.ts:644
↓ 2 callersMethod_getStacks
* Returns the stacks based on groups and bar visibility. * @param [last] - The dataset index * @param [dataIndex] - The data index of the ruler
src/controllers/controller.bar.ts:549
↓ 2 callersFunction_getStartAndCountOfVisiblePoints
(meta: ChartMeta<'line' | 'scatter'>, points: PointElement[], animationsDisabled: boolean)
src/helpers/helpers.extras.ts:91
↓ 2 callersFunction_isClickEvent
(e: ChartEvent, events?: string[])
src/helpers/helpers.core.ts:420
↓ 2 callersMethod_layers
* @return {object[]} * @private
src/core/core.scale.js:1644
↓ 2 callersFunction_lookup
( table: unknown[], value: number, cmp?: (value: number) => boolean )
src/helpers/helpers.collection.ts:20
↓ 2 callersFunction_measureText
( ctx: CanvasRenderingContext2D, data: Record<string, number>, gc: string[], longest: number, string
src/helpers/helpers.canvas.ts:39
↓ 2 callersMethod_notify
* @private
src/core/core.animator.js:23
↓ 2 callersMethod_notify
* @internal
src/core/core.plugins.ts:56
↓ 2 callersFunction_pointInLine
(p1: Point, p2: Point, t: number, _mode?)
src/helpers/helpers.interpolation.ts:6
↓ 2 callersFunction_pointerOwnsActive
(inChartArea: boolean, replay: boolean, changed: boolean)
src/helpers/helpers.core.ts:437
↓ 2 callersMethod_positionChanged
* Determine if the active elements + event combination changes the * tooltip position * @param {array} active - Active elements * @param {ChartE
src/plugins/plugin.tooltip.js:1296
↓ 2 callersFunction_resolve
(key: string, scopes: AnyObject[])
src/helpers/helpers.config.ts:415
↓ 2 callersMethod_resolveElementOptions
* @private
src/core/core.datasetController.js:832
↓ 2 callersFunction_scaleRangesChanged
(meta)
src/helpers/helpers.extras.ts:147
↓ 2 callersFunction_setMinAndMaxByKey
( array: Record<string, number>[], target: { min: number, max: number }, property: string )
src/helpers/helpers.math.ts:79
↓ 2 callersFunction_shouldApplyFill
(source)
src/plugins/plugin.filler/filler.helper.js:36
↓ 2 callersFunction_textX
(align: 'left' | 'right' | 'center', left: number, right: number, rtl: boolean)
src/helpers/helpers.extras.ts:82
↓ 2 callersMethod_tickFormatFunction
* Function to format an individual tick mark * @param {number} time * @param {number} index * @param {object[]} ticks * @param {string|undefin
src/scales/scale.time.js:532
↓ 2 callersMethod_updateVisibility
* @private
src/core/core.controller.js:971
↓ 2 callersMethodaddElements
(...args: ChartComponentLike[])
src/types/index.ts:1187
↓ 2 callersFunctionalphaOf
(value)
test/specs/core.controller.spec.js:3003
↓ 2 callersFunctionapplyStack
(stack, value, dsIndex, options = {})
src/core/core.datasetController.js:70
↓ 2 callersFunctionassertPath
* Checks every key of a path before anything is created, so that a rejected * path leaves no empty scope behind.
src/core/core.defaults.ts:42
↓ 2 callersFunctionatEdge
(t: number)
src/helpers/helpers.easing.ts:3
↓ 2 callersFunctionaxisFromPosition
(position)
src/core/core.config.js:32
↓ 2 callersMethodbindEvents
* @private
src/core/core.controller.js:1047
↓ 2 callersMethodbuildLabels
()
src/plugins/plugin.legend.ts:286
↓ 2 callersFunctioncalculateItemHeight
* Height of an item: the larger of its symbol and its label, which is one line * for anything but an array, and one line per element for an array. *
src/plugins/plugin.legend.ts:767
↓ 2 callersFunctioncalculateTextWidth
* Width of an item's label: its widest line.
src/plugins/plugin.legend.ts:750
↓ 2 callersFunctionchangeExponent
(v, m)
src/scales/scale.logarithmic.js:9
↓ 2 callersMethodchartOptionScopes
* Returns the option scopes for resolving chart options * @return {object[]}
src/core/core.config.js:448
↓ 2 callersFunctioncleanDecimatedData
(chart)
src/plugins/plugin.decimation.js:170
↓ 2 callersFunctioncleanDecimatedDataset
(dataset)
src/plugins/plugin.decimation.js:156
↓ 2 callersMethodclear
()
src/core/core.controller.js:259
↓ 2 callersMethodclearCache
()
src/core/core.config.js:320
↓ 2 callersFunctionclearCanvas
(canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D)
src/helpers/helpers.canvas.ts:134
↓ 2 callersFunctionclone
(source: T)
src/helpers/helpers.core.ts:191
↓ 2 callersFunctioncommonjsFixtures
()
test/vitest.shared.js:38
↓ 2 callersFunctioncompare2Level
(l1, l2)
src/core/core.controller.js:25
↓ 2 callersMethoddatasetScopeKeys
* Returns the option scope keys for resolving dataset options. * These keys do not include the dataset itself, because it is not under options.
src/core/core.config.js:331
↓ 2 callersFunctiondetermineAlignment
* Helper to get the alignment of a tooltip given the size
src/plugins/plugin.tooltip.js:305
↓ 2 callersFunctiondetermineAxis
(id, scaleOptions, boundAxis)
src/core/core.config.js:76
↓ 2 callersFunctiondetermineUnitForAutoTicks
* Figures out what unit results in an appropriate number of auto-generated ticks * @param {Unit} minUnit * @param {number} min * @param {number} ma
src/scales/scale.time.js:87
↓ 2 callersFunctiondistanceBetweenPoints
(pt1: Point, pt2: Point)
src/helpers/helpers.math.ts:147
↓ 2 callersMethoddrawBackground
* @protected
src/core/core.scale.js:1446
↓ 2 callersMethoddrawBorder
* @protected
src/core/core.scale.js:1527
↓ 2 callersMethoddrawGrid
* @protected
src/core/core.scale.js:1473
↓ 2 callersMethoddrawLabels
* @protected
src/core/core.scale.js:1562
↓ 2 callersFunctiondrawPoint
( ctx: CanvasRenderingContext2D, options: DrawPointOptions, x: number, y: number )
src/helpers/helpers.canvas.ts:156
↓ 2 callersFunctiondrawPointLegend
( ctx: CanvasRenderingContext2D, options: DrawPointOptions, x: number, y: number, w: number )
src/helpers/helpers.canvas.ts:167
↓ 2 callersMethoddrawTitle
* @protected
src/core/core.scale.js:1593
↓ 2 callersFunctionelasticIn
(t: number, s: number, p: number)
src/helpers/helpers.easing.ts:4
↓ 2 callersFunctionelasticOut
(t: number, s: number, p: number)
src/helpers/helpers.easing.ts:5
↓ 2 callersMethodendOf
* Returns end of `unit` for the given `timestamp`. * @param timestamp - the input timestamp * @param unit - the unit as string
src/core/core.adapters.ts:62
↓ 2 callersMethodfirst
()
src/types/index.ts:2034
↓ 2 callersMethodformats
* Returns a map of time formats for the supported formatting units defined * in Unit as well as 'datetime' representing a detailed date/time string
src/core/core.adapters.ts:22
↓ 2 callersFunctiongenerate
(method)
test/specs/helpers.easing.unit.spec.js:41
↓ 2 callersMethodgetAllParsedValues
(scale)
src/core/core.datasetController.js:678
↓ 2 callersFunctiongetAnchorPosition
* The point the tooltip anchors to. A bar cut off by the chart area points at the centre * of its visible part; a bar wholly inside, and any other el
src/plugins/plugin.tooltip.js:38
↓ 2 callersFunctiongetAngleFromPoint
( centrePoint: Point, anglePoint: Point )
src/helpers/helpers.math.ts:127
↓ 2 callersFunctiongetAxisItems
* Helper function to get the items matching along the given X or Y axis * @param chart - the chart to look at elements from * @param position - the
src/core/core.interaction.ts:299
↓ 2 callersFunctiongetBackgroundColor
(i: number)
src/plugins/plugin.colors.ts:31
↓ 2 callersFunctiongetBackgroundPoint
* Helper to get the location a tooltip needs to be placed at given the initial position (via the vm) and the size and alignment
src/plugins/plugin.tooltip.js:340
↓ 2 callersMethodgetBaseValue
()
src/types/index.ts:1381
↓ 2 callersFunctiongetBeforeAfterBodyLines
* Helper to build before and after body lines
src/plugins/plugin.tooltip.js:380
↓ 2 callersFunctiongetBorderColor
(i: number)
src/plugins/plugin.colors.ts:27
↓ 2 callersFunctiongetCanvas
* Chart.js can take a string id of a canvas element, a 2d context, or a canvas element itself. * Attempt to unwrap the item passed into the chart con
src/core/core.controller.js:51
↓ 2 callersFunctiongetChartArea
* The chart area of the tooltip a positioner runs for, when it runs for one. * A positioner can also be called on its own, without a tooltip as `this
src/plugins/plugin.tooltip.js:21
↓ 2 callersMethodgetContext
()
src/core/core.controller.js:934
↓ 2 callersMethodgetDataTimestamps
()
src/types/index.ts:3532
↓ 2 callersFunctiongetDatasetClipArea
(chart: Chart, meta: ChartMeta)
src/helpers/helpers.dataset.ts:20
↓ 2 callersMethodgetDecimalForValue
* @param {number} value - Milliseconds since epoch (1 January 1970 00:00:00 UTC) * @return {number}
src/scales/scale.time.js:571
↓ 2 callersMethodgetDevicePixelRatio
()
src/platform/platform.dom.js:368
← previousnext →201–300 of 1,573, ranked by callers