@kanunilabs/pivotgrid-enterprise
@kanunilabs/pivotgrid-enterprise / labelStride
Function: labelStride()
labelStride(
count,slotPx,rotated):number
Which categories get a label when the axis cannot fit them all.
The honest limit of a renderer with no layout engine: text width can only be ESTIMATED, and an estimate calibrated on Latin characters is wrong for the CJK locales this product ships. So the estimate is deliberately crude and only ever decides how many labels to SKIP — never where a mark goes. A wrong answer here thins or crowds an axis; it cannot misplace data.
Parameters
count
number
slotPx
number
rotated
boolean
Returns
number