(message: string)
| 19 | }; |
| 20 | |
| 21 | const showError = (message: string): void => { |
| 22 | const el = document.getElementById('error'); |
| 23 | if (!el) return; |
| 24 | el.textContent = message; |
| 25 | el.style.display = 'block'; |
| 26 | }; |
| 27 | |
| 28 | const createOptions = (title: string, data: ReadonlyArray<DataPoint>, color: string): ChartGPUOptions => { |
| 29 | const xMax = Math.PI * 2; |