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

Function getContinuousXValue

src/ui-react-dom-charts/common/data.ts:394–405  ·  view source on GitHub ↗
(
  xValue: XValue,
  xScale: XScale,
  timestampUnit: TimestampUnit,
)

Source from the content-addressed store, hash-verified

392};
393
394const getContinuousXValue = (
395 xValue: XValue,
396 xScale: XScale,
397 timestampUnit: TimestampUnit,
398): number | undefined =>
399 xScale == LINEAR
400 ? isNumber(xValue)
401 ? xValue
402 : undefined
403 : xScale == TIME
404 ? normalizeTimeValue(xValue, timestampUnit)
405 : undefined;
406
407const getTime = (value: string | Date): number | undefined => {
408 const time = +dateNew(value);

Callers 1

getXFunction · 0.70

Calls 2

isNumberFunction · 0.90
normalizeTimeValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…