MCPcopy
hub / github.com/chartjs/Chart.js / _computeLabelArea

Method _computeLabelArea

src/core/core.scale.js:1423–1436  ·  view source on GitHub ↗

* @private

()

Source from the content-addressed store, hash-verified

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

Callers 1

drawLabelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected