MCPcopy Create free account
hub / github.com/chartjs/Chart.js / _circumference

Method _circumference

src/controllers/controller.doughnut.js:246–254  ·  view source on GitHub ↗

* @private

(i, reset)

Source from the content-addressed store, hash-verified

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

Callers 1

updateElementsMethod · 0.95

Calls 3

_getCircumferenceMethod · 0.95
getDataVisibilityMethod · 0.80

Tested by

no test coverage detected