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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

position
required
number
SVG pixel coordinate where this tick is drawn on the axis.
label
required
string
Already-formatted string rendered as the tick label.
value
required
number | 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

typescript