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