MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / showError

Function showError

examples/interactive/main.ts:4–9  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

2import type { ChartGPUInstance, ChartGPUOptions, DataPoint, TooltipParams } from '../../src/index';
3
4const 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
11const escapeHtml = (text: string): string =>
12 text

Callers 1

main.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected