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

Method configure

src/core/core.scale.js:485–503  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

483 * @protected
484 */
485 configure() {
486 let reversePixels = this.options.reverse;
487 let startPixel, endPixel;
488
489 if (this.isHorizontal()) {
490 startPixel = this.left;
491 endPixel = this.right;
492 } else {
493 startPixel = this.top;
494 endPixel = this.bottom;
495 // by default vertical scales are from bottom to top, so pixels are reversed
496 reversePixels = !reversePixels;
497 }
498 this._startPixel = startPixel;
499 this._endPixel = endPixel;
500 this._reversePixels = reversePixels;
501 this._length = endPixel - startPixel;
502 this._alignToPixels = this.options.alignToPixels;
503 }
504
505 afterUpdate() {
506 call(this.options.afterUpdate, [this]);

Callers 1

updateMethod · 0.95

Calls 1

isHorizontalMethod · 0.95

Tested by

no test coverage detected