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

Method getMaxOffset

src/controllers/controller.doughnut.js:359–367  ·  view source on GitHub ↗
(arcs)

Source from the content-addressed store, hash-verified

357 }
358
359 getMaxOffset(arcs) {
360 let max = 0;
361
362 for (let i = 0, ilen = arcs.length; i < ilen; ++i) {
363 const options = this.resolveDataElementOptions(i);
364 max = Math.max(max, options.offset || 0, options.hoverOffset || 0);
365 }
366 return max;
367 }
368
369 /**
370 * Get radius length offset of the dataset in relation to the visible datasets weights. This allows determining the inner and outer radius correctly

Callers 1

updateMethod · 0.95

Calls 1

Tested by

no test coverage detected