Skip to content

Interface: AxisInfo ​

Experimental

A cartesian axis as seen by traces and components.

Properties ​

PropertyModifierTypeDescription
endreadonlynumberExperimental
fullreadonlyFullAxisExperimental The defaulted axis. range holds the range in use (linear coordinates) after layout.
idreadonlystringExperimental Axis id: 'x', 'y2', …
letterreadonly"x" | "y"Experimental
namereadonlystringExperimental Layout key: 'xaxis', 'yaxis2', …
scalereadonlyScaleExperimental Data ↔ linear ↔ axis-pixel mapping (range and length are current after layout).
startreadonlynumberExperimental Container px (top-left origin) of the axis' pixel 0 (range[0]) and of its far end: left → right for x axes, bottom → top for y axes (so start > end for y).
typereadonlyAxisTypeExperimental Resolved axis type ('-' has been replaced by the detected type).

Methods ​

l2c() ​

ts
l2c(l): number;

Experimental

Linear coordinate → container px along this axis (x: from the left, y: from the top).

Parameters ​

ParameterType
lnumber

Returns ​

number

Released under the MIT License.