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

Function getXTicks

src/ui-react-dom-charts/common/data.ts:210–226  ·  view source on GitHub ↗
(
  kind: Kind,
  [xMin, xMax]: Bounds,
  [width]: Size,
  labelSize: number,
  tickCount?: number,
)

Source from the content-addressed store, hash-verified

208};
209
210export const getXTicks = (
211 kind: Kind,
212 [xMin, xMax]: Bounds,
213 [width]: Size,
214 labelSize: number,
215 tickCount?: number,
216): Ticks =>
217 kind == LINE && isNumber(xMin) && isNumber(xMax) && xMin != xMax
218 ? getTicks(
219 xMin,
220 xMax,
221 getTickCount(tickCount),
222 labelSize,
223 width,
224 isInteger(xMin) && isInteger(xMax),
225 )
226 : [];
227
228export const getResolvedXScale = (
229 xAxisScale: 'auto' | XScale | undefined,

Callers 1

CartesianChartFunction · 0.90

Calls 3

isNumberFunction · 0.90
getTicksFunction · 0.90
getTickCountFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…