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

Function setOption

src/ChartGPU.ts:1309–1321  ·  view source on GitHub ↗
(nextOptions)

Source from the content-addressed store, hash-verified

1307 return disposed;
1308 },
1309 setOption(nextOptions) {
1310 if (disposed) return;
1311 currentOptions = nextOptions;
1312 resolvedOptions = resolveOptionsForChart(nextOptions);
1313 coordinator?.setOptions(resolvedOptions);
1314 initRuntimeHitTestStoreFromResolvedOptions();
1315 cachedGlobalBounds = computeGlobalBounds(resolvedOptions.series, runtimeRawBoundsByIndex);
1316 interactionScalesCache = null;
1317 syncDataZoomUi();
1318
1319 // Requirement: setOption triggers a render (and thus series parsing/extent/scales update inside render).
1320 requestRender();
1321 },
1322 appendData(seriesIndex, newPoints) {
1323 if (disposed) return;
1324 if (!Number.isFinite(seriesIndex)) return;

Callers

nothing calls this directly

Calls 6

resolveOptionsForChartFunction · 0.90
syncDataZoomUiFunction · 0.85
setOptionsMethod · 0.80
computeGlobalBoundsFunction · 0.70
requestRenderFunction · 0.70

Tested by

no test coverage detected