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

Function showError

examples/worker-streaming/main.ts:36–41  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

34import type { ChartGPUInstance, ChartGPUOptions, DataPoint } from '../../src/index';
35
36const showError = (message: string): void => {
37 const el = document.getElementById('error');
38 if (!el) return;
39 el.textContent = message;
40 el.style.display = 'block';
41};
42
43const setText = (id: string, text: string): void => {
44 const el = document.getElementById(id);

Callers 1

main.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected