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-sdkFunction
On this page
import { categoryName } from '@internote/canvas-sdk';

#Signature

(axis: CategoricalAxis, position: number): string | undefined

#Parameters

axis
The categorical axis.
position
The 1-based position, rounded to the nearest stop.

Declared in packages/canvas-sdk/src/data/categories.ts:171.

Last updated