()
| 192 | chart.resize(); |
| 193 | |
| 194 | const apply = (): void => { |
| 195 | controls = { |
| 196 | mode: normalizeSamplingMode(modeEl.value), |
| 197 | threshold: normalizeThreshold(thresholdEl.value), |
| 198 | }; |
| 199 | |
| 200 | userOptions = createOptions(data, controls, xMax); |
| 201 | chart.setOption(userOptions); |
| 202 | updateReadouts(data.length, xMax, controls, chart.getZoomRange()); |
| 203 | }; |
| 204 | |
| 205 | applyEl.addEventListener('click', apply); |
| 206 | thresholdEl.addEventListener('keydown', (e) => { |
no test coverage detected