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

Function getYDomain

src/ui-react-dom-charts/common/data.ts:380–387  ·  view source on GitHub ↗
(
  points: (DataPoint | ScaledPoint)[],
  kind: Kind = BAR,
)

Source from the content-addressed store, hash-verified

378};
379
380export const getYDomain = (
381 points: (DataPoint | ScaledPoint)[],
382 kind: Kind = BAR,
383): Domain =>
384 getDomain([
385 ...(kind == BAR ? [0] : []),
386 ...arrayMap(points, ([, , yValue]) => yValue),
387 ]);
388
389const getDomain = (values: number[]): Domain => {
390 const min = mathMin(...values);

Callers 1

getBoundsFunction · 0.70

Calls 2

arrayMapFunction · 0.90
getDomainFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…