MCPcopy
hub / github.com/chartjs/Chart.js / getTicksLimit

Function getTicksLimit

src/core/core.scale.js:11–11  ·  view source on GitHub ↗
(ticksLength, maxTicksLimit)

Source from the content-addressed store, hash-verified

9const reverseAlign = (align) => align === 'left' ? 'right' : align === 'right' ? 'left' : align;
10const offsetFromEdge = (scale, edge, offset) => edge === 'top' || edge === 'left' ? scale[edge] + offset : scale[edge] - offset;
11const getTicksLimit = (ticksLength, maxTicksLimit) => Math.min(maxTicksLimit || ticksLength, ticksLength);
12
13/**
14 * @typedef { import('../types/index.js').Chart } Chart

Callers 2

_computeLabelSizesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected