IChartTick
interface
Data Visualisation
A single tick rendered along a chart axis. position is the SVG pixel coordinate, label the already-formatted string to display, and value the original data value before formatting.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- positionrequirednumber
- SVG pixel coordinate where this tick is drawn on the axis.
- labelrequiredstring
- Already-formatted string rendered as the tick label.
- valuerequirednumber | string
- Original data value before formatting — numeric for Y axes, string for categorical X axes.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
IChartTick array produced by useChart