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

Method _computeLabelArea

src/core/core.scale.js:1425–1438  ·  view source on GitHub ↗

* @private

()

Source from the content-addressed store, hash-verified

1423 * @private
1424 */
1425 _computeLabelArea() {
1426 if (this.options.ticks.mirror) {
1427 return;
1428 }
1429
1430 const chart = this.chart;
1431 const position = this.options.position;
1432
1433 if (position === 'left' || position === 'right') {
1434 return {top: 0, left: this.left, bottom: chart.height, right: this.right};
1435 } if (position === 'top' || position === 'bottom') {
1436 return {top: this.top, left: 0, bottom: this.bottom, right: chart.width};
1437 }
1438 }
1439
1440 /**
1441 * @protected

Callers 1

drawLabelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected