categoryName
Returns what an axis calls the name at a 1-based position, in full — its label where the author gave one, else the name — or undefined where the position is off the axis.
@internote/canvas-sdkOn this page
import { categoryName } from '@internote/canvas-sdk';#Signature
(axis: CategoricalAxis, position: number): string | undefined#Parameters
axisThe categorical axis.
positionThe 1-based position, rounded to the nearest stop.
Declared in packages/canvas-sdk/src/data/categories.ts:171.