MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getDataPoint

Function getDataPoint

src/ui-react-dom-charts/common/data.ts:68–79  ·  view source on GitHub ↗
(
  rowId: string,
  xCell: CellOrUndefined | ResultCellOrUndefined,
  yCell: CellOrUndefined | ResultCellOrUndefined,
)

Source from the content-addressed store, hash-verified

66 );
67
68export const getDataPoint = (
69 rowId: string,
70 xCell: CellOrUndefined | ResultCellOrUndefined,
71 yCell: CellOrUndefined | ResultCellOrUndefined,
72): DataPoint | undefined => {
73 const xValue = getXValue(xCell);
74 const yValue = getYValue(yCell);
75
76 return isUndefined(xValue) || isUndefined(yValue)
77 ? undefined
78 : [rowId, xValue, yValue];
79};
80
81export const getScaledPoints = (
82 kind: Kind,

Callers 2

useSeriesDataFunction · 0.90
useInitialSeriesSummaryFunction · 0.90

Calls 3

isUndefinedFunction · 0.90
getXValueFunction · 0.70
getYValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…