Label definition drawn on an axis at a point's coordinate.
Template for measure label text lines.
Base label definition shared by point, segment and axis labels.
Horizontal label alignment around anchor point.
Label text color. Defaults to current theme tick text color.
Label font family.
Label font size in CSS pixels.
Label font style, e.g. "normal", "italic".
Label font weight, e.g. "400", "500", "bold".
Horizontal placement of the label relative to its anchor.
Optional id used by caller code.
Target line height in pixels. Overrides lineSpacing when set.
Extra spacing between text lines. If in (0,1), treated as a multiplier of line height.
Horizontal alignment for multiline label text.
Optional text padding (applies to point/segment labels; axis labels use axisLabelPadding).
Used for STATIC label text.
Vertical placement of the label relative to its anchor.
Extra x offset in pixels for non-axis labels (Point/Segment).
Extra y offset in pixels for non-axis labels (Point/Segment).
Custom formatter for multi-point labels.
Style overrides for resolved point/segment labels.
Custom style formatter for multi-point labels.
A computed label layout item in pixel coordinates.
Horizontal label alignment around anchor point.
Label text color override.
Label font family.
Label font size in CSS pixels.
Label font style, e.g. "normal", "italic".
Default "normal"
Label font weight, e.g. "400", "500", "bold".
Default "500"
Original label id.
Target line height in pixels.
Extra spacing between text lines.
Horizontal alignment for multiline label text.
Optional text padding used by native text positioning.
Rotation in degrees.
Original label text.
X coordinate in series-view-rect pixels.
Y coordinate in series-view-rect pixels.
Union of supported options for placement modifier.
Union of supported annotation types for placement modifier.
Label definition attached to a specific annotation point.
Label definition attached to a segment between two annotation points.
Result of snap resolution used by drag points.
When true, the drag point should snap to the provided value instead of the current drag position.
Returns a rounded 1/2/5/10 price step from finite values.
Default target box count 50.
Calculates Point & Figure marks from close prices.
If boxSize is omitted, the calculator derives a rounded price step from the
finite close range so the result is useful without instrument-specific setup.
If reversalAmount is omitted, the standard three-box reversal is used.
Default 3.
Clips the segment [start,end] with optional extension on either side. When extension is enabled, the segment becomes a line/ray in that direction.
Clips a forward ray that starts at origin and moves along direction.
Clips a parametric line p(t) = origin + t * direction to the supplied rect and optional t-range. Returns segment endpoints in pixel coordinates when visible.
Clips a finite segment [start,end] to the rect.
Tests whether a point is inside (or on edge of) a triangle.
Tests whether a point is inside a quad interpreted as a triangle strip:
[p1, p2, p3, p4] => triangles (p1,p2,p3) and (p2,p3,p4).
Converts an absolute canvas clip-rect into series-view local coordinates.
Generated using TypeDoc
A label definition attached to a point, segment or axis.