(message: string)
| 2 | import type { ChartGPUInstance, ChartGPUOptions, DataPoint, TooltipParams } from '../../src/index'; |
| 3 | |
| 4 | const showError = (message: string): void => { |
| 5 | const el = document.getElementById('error'); |
| 6 | if (!el) return; |
| 7 | el.textContent = message; |
| 8 | el.style.display = 'block'; |
| 9 | }; |
| 10 | |
| 11 | const escapeHtml = (text: string): string => |
| 12 | text |