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

Method setDimensions

src/plugins/plugin.legend.js:92–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 setDimensions() {
93 if (this.isHorizontal()) {
94 this.width = this.maxWidth;
95 this.left = this._margins.left;
96 this.right = this.width;
97 } else {
98 this.height = this.maxHeight;
99 this.top = this._margins.top;
100 this.bottom = this.height;
101 }
102 }
103
104 buildLabels() {
105 const labelOpts = this.options.labels || {};

Callers 1

updateMethod · 0.95

Calls 1

isHorizontalMethod · 0.95

Tested by

no test coverage detected