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

Method updateRangeFromParsed

src/controllers/controller.bar.js:343–351  ·  view source on GitHub ↗

* @protected

(range, scale, parsed, stack)

Source from the content-addressed store, hash-verified

341 * @protected
342 */
343 updateRangeFromParsed(range, scale, parsed, stack) {
344 super.updateRangeFromParsed(range, scale, parsed, stack);
345 const custom = parsed._custom;
346 if (custom && scale === this._cachedMeta.vScale) {
347 // float bar: only one end of the bar is considered by `super`
348 range.min = Math.min(range.min, custom.min);
349 range.max = Math.max(range.max, custom.max);
350 }
351 }
352
353 /**
354 * @return {number|boolean}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected