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

Function reset

examples/live-streaming/main.ts:124–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 });
123
124 const reset = (): void => {
125 rawData = createSeedData(800);
126 const last = rawData[rawData.length - 1] as DataPoint | undefined;
127 const lastX = last ? (Array.isArray(last) ? last[0] : last.x) : 0;
128 nextX = Number.isFinite(lastX) ? lastX : 0;
129 applyOptions();
130 };
131
132 resetEl.addEventListener('click', reset);
133

Callers

nothing calls this directly

Calls 2

createSeedDataFunction · 0.85
applyOptionsFunction · 0.85

Tested by

no test coverage detected