MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / computeBaseXDomain

Function computeBaseXDomain

src/core/createRenderCoordinator.ts:1189–1197  ·  view source on GitHub ↗
(
  options: ResolvedChartGPUOptions,
  runtimeRawBoundsByIndex?: ReadonlyArray<Bounds | null> | null
)

Source from the content-addressed store, hash-verified

1187};
1188
1189const computeBaseXDomain = (
1190 options: ResolvedChartGPUOptions,
1191 runtimeRawBoundsByIndex?: ReadonlyArray<Bounds | null> | null
1192): { readonly min: number; readonly max: number } => {
1193 const bounds = computeGlobalBounds(options.series, runtimeRawBoundsByIndex);
1194 const baseMin = finiteOrUndefined(options.xAxis.min) ?? bounds.xMin;
1195 const baseMax = finiteOrUndefined(options.xAxis.max) ?? bounds.xMax;
1196 return normalizeDomain(baseMin, baseMax);
1197};
1198
1199/**
1200 * Computes Y-axis domain bounds from the visible/rendered series data.

Callers 5

flushPendingAppendsFunction · 0.85
recomputeRenderSeriesFunction · 0.85
setOptionsFunction · 0.85
renderFunction · 0.85

Calls 3

computeGlobalBoundsFunction · 0.70
finiteOrUndefinedFunction · 0.70
normalizeDomainFunction · 0.70

Tested by

no test coverage detected