categoryPosition
Returns the 1-based position a name takes on a categorical axis, or null where the axis has no such name.
@internote/canvas-sdkOn this page
import { categoryPosition } from '@internote/canvas-sdk';A preset answers to the full name or its first three letters, Sept too; a written list matches exactly, trimmed and case-insensitively; a discrete numeric axis matches as numbers, so a cell that is not a number is on no stop.
#Signature
(axis: CategoricalAxis, text: string): number | null#Parameters
axisThe categorical axis the cell is placed on.
textThe cell or name to place.
Declared in packages/canvas-sdk/src/data/categories.ts:138.