MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / buildTooltipParams

Function buildTooltipParams

src/core/createRenderCoordinator.ts:2379–2389  ·  view source on GitHub ↗
(seriesIndex: number, dataIndex: number, point: DataPoint)

Source from the content-addressed store, hash-verified

2377 };
2378
2379 const buildTooltipParams = (seriesIndex: number, dataIndex: number, point: DataPoint): TooltipParams => {
2380 const s = currentOptions.series[seriesIndex];
2381 const { x, y } = getPointXY(point);
2382 return {
2383 seriesName: s?.name ?? '',
2384 seriesIndex,
2385 dataIndex,
2386 value: [x, y],
2387 color: s?.color ?? '#888',
2388 };
2389 };
2390
2391 const buildCandlestickTooltipParams = (
2392 seriesIndex: number,

Callers 1

renderFunction · 0.85

Calls 1

getPointXYFunction · 0.70

Tested by

no test coverage detected