MCPcopy Create free account

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

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

↓ 2 callersMethod_getLabelCapacity
* @param {number} exampleTime * @return {number} * @private
src/scales/scale.time.js:610
↓ 2 callersMethod_getRingWeight
* @private
src/controllers/controller.doughnut.js:391
↓ 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:376
↓ 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 {number} [datasetIndex] - The dataset index * @param
src/controllers/controller.bar.js:518
↓ 2 callersMethod_getStacks
* Returns the stacks based on groups and bar visibility. * @param {number} [last] - The dataset index * @param {number} [dataIndex] - The data ind
src/controllers/controller.bar.js:434
↓ 2 callersFunction_getStartAndCountOfVisiblePoints
(meta: ChartMeta<'line' | 'scatter'>, points: PointElement[], animationsDisabled: boolean)
src/helpers/helpers.extras.ts:88
↓ 2 callersMethod_layers
* @return {object[]} * @private
src/core/core.scale.js:1639
↓ 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.plugins.js:59
↓ 2 callersMethod_notify
* @private
src/core/core.animator.js:23
↓ 2 callersFunction_pointInLine
(p1: Point, p2: Point, t: number, mode?)
src/helpers/helpers.interpolation.ts:6
↓ 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:1216
↓ 2 callersFunction_resolve
(key: string, scopes: AnyObject[])
src/helpers/helpers.config.ts:407
↓ 2 callersMethod_resolveElementOptions
* @private
src/core/core.datasetController.js:804
↓ 2 callersFunction_scaleRangesChanged
(meta)
src/helpers/helpers.extras.ts:144
↓ 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 callersMethod_stop
()
src/core/core.controller.js:927
↓ 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:527
↓ 2 callersMethod_updateVisibility
* @private
src/core/core.controller.js:892
↓ 2 callersMethodaddElements
(...args: ChartComponentLike[])
src/types/index.d.ts:1182
↓ 2 callersFunctionapplyStack
(stack, value, dsIndex, options = {})
src/core/core.datasetController.js:70
↓ 2 callersFunctionatEdge
(t: number)
src/helpers/helpers.easing.ts:3
↓ 2 callersMethodbeforeLayout
* @desc Called before laying out `chart`. If any plugin returns `false`, * the layout update is cancelled until another `update` is triggered. *
src/types/index.d.ts:990
↓ 2 callersMethodbindEvents
* @private
src/core/core.controller.js:964
↓ 2 callersMethodbuildLabels
()
src/plugins/plugin.legend.js:104
↓ 2 callersFunctioncalculateLegendItemHeight
(legendItem, fontLineHeight)
src/plugins/plugin.legend.js:577
↓ 2 callersMethodcancel
()
src/core/core.animation.js:67
↓ 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:331
↓ 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:254
↓ 2 callersMethodclearCache
()
src/core/core.config.js:203
↓ 2 callersFunctionclearCanvas
(canvas?: HTMLCanvasElement, ctx?: CanvasRenderingContext2D)
src/helpers/helpers.canvas.ts:134
↓ 2 callersFunctionclone
(source: T)
src/helpers/helpers.core.ts:190
↓ 2 callersFunctioncompare2Level
(l1, l2)
src/core/core.controller.js:25
↓ 2 callersFunctiondetermineAlignment
* Helper to get the alignment of a tooltip given the size
src/plugins/plugin.tooltip.js:269
↓ 2 callersFunctiondetermineAxis
(id, ...scaleOptions)
src/core/core.config.js:40
↓ 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:144
↓ 2 callersMethoddrawBackground
* @protected
src/core/core.scale.js:1441
↓ 2 callersMethoddrawBorder
* @protected
src/core/core.scale.js:1522
↓ 2 callersMethoddrawGrid
* @protected
src/core/core.scale.js:1468
↓ 2 callersMethoddrawLabels
* @protected
src/core/core.scale.js:1557
↓ 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:1588
↓ 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 callersFunctiongenerate
(method)
test/specs/helpers.easing.tests.js:41
↓ 2 callersMethodgetAllParsedValues
(scale)
src/core/core.datasetController.js:662
↓ 2 callersFunctiongetAngleFromPoint
( centrePoint: Point, anglePoint: Point )
src/helpers/helpers.math.ts:124
↓ 2 callersFunctiongetAxisItems
* Helper function to get the items matching along the given X or Y axis * @param {Chart} chart - the chart to look at elements from * @param {Point}
src/core/core.interaction.js:228
↓ 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:304
↓ 2 callersFunctiongetBarBounds
* Helper function to get the bounds of the bar regardless of the orientation * @param {BarElement} bar the bar * @param {boolean} [useFinalPosition]
src/elements/element.bar.js:15
↓ 2 callersMethodgetBaseValue
()
src/types/index.d.ts:1376
↓ 2 callersFunctiongetBeforeAfterBodyLines
* Helper to build before and after body lines
src/plugins/plugin.tooltip.js:344
↓ 2 callersFunctiongetBorderColor
(i: number)
src/plugins/plugin.colors.ts:27
↓ 2 callersFunctiongetBoxSize
(labelOpts, fontSize)
src/plugins/plugin.legend.js:24
↓ 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 callersMethodgetContext
()
src/core/core.controller.js:855
↓ 2 callersMethodgetController
(id: string)
src/types/index.d.ts:1186
↓ 2 callersMethodgetDataTimestamps
()
src/types/index.d.ts:3519
↓ 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:562
↓ 2 callersMethodgetDevicePixelRatio
()
src/platform/platform.dom.js:368
↓ 2 callersMethodgetElementsAtEventForMode
(e, mode, options, useFinalPosition)
src/core/core.controller.js:820
↓ 2 callersMethodgetFirstScaleIdForIndexAxis
()
src/controllers/controller.bar.js:493
↓ 2 callersMethodgetIndexAngle
(index)
src/scales/scale.radialLinear.js:482
↓ 2 callersFunctiongetIndexAxis
(type, options)
src/core/core.config.js:5
↓ 2 callersFunctiongetKeysFromAllScopes
(target: ResolverCache)
src/helpers/helpers.config.ts:419
↓ 2 callersMethodgetLabelTimestamps
* @protected
src/scales/scale.time.js:651
↓ 2 callersMethodgetLineWidthForValue
* Returns the grid line width at given value
src/types/index.d.ts:1357
↓ 2 callersMethodgetMatchingVisibleMetas
* Returns visible dataset metas that are attached to this scale * @param {string} [type] - if specified, also filter by dataset type * @return {ob
src/core/core.scale.js:1680
↓ 2 callersMethodgetMaxBorderWidth
(arcs)
src/controllers/controller.doughnut.js:332
↓ 2 callersMethodgetMaxOverflow
* @return {number|boolean} * @protected
src/core/core.datasetController.js:680
↓ 2 callersMethodgetMaximumSize
* @param {HTMLCanvasElement} canvas * @param {number} [width] - content width of parent element * @param {number} [height] - content height of par
src/platform/platform.dom.js:378
↓ 2 callersMethodgetMeta
()
src/core/core.datasetController.js:323
↓ 2 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/core/core.scale.js:906
↓ 2 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 corne
src/core/core.scale.js:888
↓ 2 callersMethodgetPointPosition
(index, distanceFromCenter, additionalAngle = 0)
src/scales/scale.radialLinear.js:520
↓ 2 callersFunctiongetResolver
(resolverCache, scopes, prefixes)
src/core/core.config.js:383
↓ 2 callersFunctiongetSortedDatasetIndices
(chart, filterVisible)
src/core/core.datasetController.js:59
↓ 2 callersMethodgetTicks
()
src/types/index.d.ts:1388
↓ 2 callersFunctiongetTicksLimit
(ticksLength, maxTicksLimit)
src/core/core.scale.js:11
↓ 2 callersFunctiongetTitleHeight
* @param {object} options
src/core/core.scale.js:95
↓ 2 callersFunctiongetTooltipSize
* Get the size of the tooltip
src/plugins/plugin.tooltip.js:148
↓ 2 callersFunctiongetValueAxis
(indexAxis: 'x' | 'y')
src/helpers/helpers.curve.ts:10
↓ 2 callersMethodhandleTickRangeOptions
()
src/scales/scale.linearbase.js:181
↓ 2 callersMethodhasValue
()
src/core/core.element.ts:22
↓ 2 callersFunctioninRange
(el: PointElement, pos: number, axis: 'x' | 'y', useFinalPosition?: boolean)
src/elements/element.point.ts:11
↓ 2 callersMethodincludeOptions
* Utility for determining if `options` should be included in the updated properties * @protected
src/core/core.datasetController.js:878
↓ 2 callersMethodinit
(options: O)
src/types/index.d.ts:1384
↓ 2 callersFunctioninitData
(data)
src/core/core.config.js:122
↓ 2 callersMethodinitOffsets
* Returns the start and end offsets from edges in the form of {start, end} * where each value is a relative width to the scale and ranges between 0
src/scales/scale.time.js:417
↓ 2 callersFunctioninitOptions
(config)
src/core/core.config.js:115
← previousnext →201–300 of 1,409, ranked by callers