* @protected
()
| 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 |
nothing calls this directly
no test coverage detected