MCPcopy
hub / github.com/nhn/tui.chart / getValueString

Function getValueString

apps/chart/src/helpers/tooltip.ts:10–22  ·  view source on GitHub ↗
(value: TooltipDataValue)

Source from the content-addressed store, hash-verified

8}
9
10export function getValueString(value: TooltipDataValue) {
11 let result = '';
12
13 if (isRangeValue(value)) {
14 result = `${value[0]} ~ ${value[1]}`;
15 } else if (isObject(value) && !Array.isArray(value)) {
16 result = `(${value.x}, ${value.y})` + (isBubblePointType(value) ? `, r: ${value.r}` : '');
17 } else {
18 result = String(value);
19 }
20
21 return result;
22}

Callers 1

getFormattedValueMethod · 0.90

Calls 3

isRangeValueFunction · 0.90
isObjectFunction · 0.90
isBubblePointTypeFunction · 0.85

Tested by

no test coverage detected