()
| 166 | updateBinnedReadout(); |
| 167 | |
| 168 | const apply = (): void => { |
| 169 | chart.setOption({ |
| 170 | ...baseOptions, |
| 171 | series: [ |
| 172 | { |
| 173 | ...(baseOptions.series![0] as any), |
| 174 | binSize: Number(binSizeInput.value), |
| 175 | densityColormap: colormapSelect.value, |
| 176 | densityNormalization: normalizationSelect.value, |
| 177 | }, |
| 178 | ], |
| 179 | }); |
| 180 | }; |
| 181 | |
| 182 | binSizeInput.addEventListener('change', apply); |
| 183 | colormapSelect.addEventListener('change', apply); |