}
/**
- * Returns the sum of all visibile data set weights.
+ * Returns the sum of all visible data set weights.
* @private
*/
_getVisibleDatasetWeightTotal() {
// If the event is replayed from `update`, we should evaluate with the final positions.
//
// The `replay`:
- // It's the last event (excluding click) that has occured before `update`.
+ // It's the last event (excluding click) that has occurred before `update`.
// So mouse has not moved. It's also over the chart, because there is a `replay`.
//
// The why:
});
if (info.cacheable) {
- // `$shared` indicades this set of options can be shared between multiple elements.
+ // `$shared` indicates this set of options can be shared between multiple elements.
// Sharing is used to reduce number of properties to change during animation.
values.$shared = sharing;
return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels || [];
}
- // These methods are ordered by lifecyle. Utilities then follow.
+ // These methods are ordered by lifecycle. Utilities then follow.
// Any function defined here is inherited by all scale types.
// Any function can be extended by the scale type
const {startAngle, endAngle, pixelMargin, x, y, outerRadius, innerRadius} = element;
let angleMargin = pixelMargin / outerRadius;
- // Draw an inner border by cliping the arc and drawing a double-width border
+ // Draw an inner border by clipping the arc and drawing a double-width border
// Enlarge the clipping arc by 0.33 pixels to eliminate glitches between borders
ctx.beginPath();
ctx.arc(x, y, outerRadius, startAngle - angleMargin, endAngle + angleMargin);