(message: string)
| 28 | }; |
| 29 | |
| 30 | const showError = (message: string): void => { |
| 31 | const el = document.getElementById('error'); |
| 32 | if (!el) return; |
| 33 | el.textContent = message; |
| 34 | el.style.display = 'block'; |
| 35 | }; |
| 36 | |
| 37 | async function main() { |
| 38 | const container = document.getElementById('chart'); |