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

Function showError

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

Source from the content-addressed store, hash-verified

2import type { ChartGPUInstance, ChartGPUOptions, DataPoint } 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
11// Type guard for the tuple form of DataPoint. We define this explicitly because `Array.isArray(...)`
12// narrows to `any[]`, which does not reliably narrow `readonly [...]` tuples in strict TS configs.

Callers 2

onToggleChangeFunction · 0.70
main.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected