MCPcopy
hub / github.com/chartjs/Chart.js / _circumference

Method _circumference

src/controllers/controller.doughnut.js:243–251  ·  view source on GitHub ↗

* @private

(i, reset)

Source from the content-addressed store, hash-verified

241 * @private
242 */
243 _circumference(i, reset) {
244 const opts = this.options;
245 const meta = this._cachedMeta;
246 const circumference = this._getCircumference();
247 if ((reset && opts.animation.animateRotate) || !this.chart.getDataVisibility(i) || meta._parsed[i] === null || meta.data[i].hidden) {
248 return 0;
249 }
250 return this.calculateCircumference(meta._parsed[i] * circumference / TAU);
251 }
252
253 updateElements(arcs, start, count, mode) {
254 const reset = mode === 'reset';

Callers 1

updateElementsMethod · 0.95

Calls 3

_getCircumferenceMethod · 0.95
getDataVisibilityMethod · 0.80

Tested by

no test coverage detected