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

Method getMinMax

src/controllers/controller.polarArea.js:121–140  ·  src/controllers/controller.polarArea.js::PolarAreaController.getMinMax

* @protected

()

Source from the content-addressed store, hash-verified

119 * @protected
120 */
121 getMinMax() {
122 const meta = this._cachedMeta;
123 const range = {min: Number.POSITIVE_INFINITY, max: Number.NEGATIVE_INFINITY};
124
125 meta.data.forEach((element, index) => {
126 const parsed = this.getParsed(index).r;
127
128 if (!isNaN(parsed) && this.chart.getDataVisibility(index)) {
129 if (parsed < range.min) {
130 range.min = parsed;
131 }
132
133 if (parsed > range.max) {
134 range.max = parsed;
135 }
136 }
137 });
138
139 return range;
140 }
141
142 /**
143 * @private

Callers

nothing calls this directly

Calls 2

getParsedMethod · 0.80
getDataVisibilityMethod · 0.80

Tested by

no test coverage detected