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

Function getAxisBound

src/ui-react-dom-charts/components/CartesianChart.tsx:498–507  ·  view source on GitHub ↗
(
  value: TimeValue | undefined,
  bound: XValue | undefined,
  xScale: XScale,
  timestampUnit: TimestampUnit,
)

Source from the content-addressed store, hash-verified

496};
497
498const getAxisBound = (
499 value: TimeValue | undefined,
500 bound: XValue | undefined,
501 xScale: XScale,
502 timestampUnit: TimestampUnit,
503): XValue | undefined => {
504 const axisBound =
505 xScale == TIME ? normalizeTimeValue(value, timestampUnit) : value;
506 return isFiniteNumber(axisBound) ? (axisBound as number) : bound;
507};
508
509const getNumberAxisBound = (
510 value: number | undefined,

Callers 1

getAxisBoundsFunction · 0.70

Calls 1

normalizeTimeValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…