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

Method _getRingWeight

src/controllers/controller.doughnut.js:388–390  ·  src/controllers/controller.doughnut.js::DoughnutController._getRingWeight

* @private

(datasetIndex)

Source from the content-addressed store, hash-verified

386 * @private
387 */
388 _getRingWeight(datasetIndex) {
389 return Math.max(valueOrDefault(this.chart.data.datasets[datasetIndex].weight, 1), 0);
390 }
391
392 /**
393 * Returns the sum of all visible data set weights.

Callers 2

updateMethod · 0.95
_getRingWeightOffsetMethod · 0.95

Calls 1

valueOrDefaultFunction · 0.85

Tested by

no test coverage detected