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

Method getMaxOffset

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

Source from the content-addressed store, hash-verified

360 }
361
362 getMaxOffset(arcs) {
363 let max = 0;
364
365 for (let i = 0, ilen = arcs.length; i < ilen; ++i) {
366 const options = this.resolveDataElementOptions(i);
367 max = Math.max(max, options.offset || 0, options.hoverOffset || 0);
368 }
369 return max;
370 }
371
372 /**
373 * 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