MCPcopy
hub / github.com/ChartGPU/ChartGPU / toggleAutoScroll

Function toggleAutoScroll

examples/candlestick-streaming/main.ts:254–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252}
253
254function toggleAutoScroll() {
255 autoScrollEnabled = !autoScrollEnabled;
256 chart.setOption({ autoScroll: autoScrollEnabled });
257 const btn = document.getElementById('autoscroll-btn')!;
258 btn.textContent = autoScrollEnabled ? '📍 Auto-Scroll: ON' : '📍 Auto-Scroll: OFF';
259 btn.classList.toggle('toggle-active', autoScrollEnabled);
260}
261
262/**
263 * Switch to a different candlestick timeframe.

Callers

nothing calls this directly

Calls 1

setOptionMethod · 0.65

Tested by

no test coverage detected