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

Function formatTooltipItem

src/components/formatTooltip.ts:147–152  ·  view source on GitHub ↗
(params: TooltipParams)

Source from the content-addressed store, hash-verified

145 * For candlestick series, returns O/H/L/C with arrow and percentage change.
146 */
147export function formatTooltipItem(params: TooltipParams): string {
148 if (isCandlestickValue(params.value)) {
149 return formatCandlestickTooltip(params);
150 }
151 return formatRowHtml(params, formatNumber(params.value[1]));
152}
153
154/**
155 * Default tooltip formatter for axis mode.

Callers 1

renderFunction · 0.90

Calls 4

isCandlestickValueFunction · 0.85
formatCandlestickTooltipFunction · 0.85
formatRowHtmlFunction · 0.85
formatNumberFunction · 0.70

Tested by

no test coverage detected