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

Method getMaxOffset

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

Source from the content-addressed store, hash-verified

368 }
369
370 getMaxOffset(arcs) {
371 let max = 0;
372
373 for (let i = 0, ilen = arcs.length; i < ilen; ++i) {
374 const options = this.resolveDataElementOptions(i);
375 max = Math.max(max, options.offset || 0, options.hoverOffset || 0);
376 }
377 return max;
378 }
379
380 /**
381 * 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